移动系统liao
2025-02-18 8b613a5275e6fe23b91f65cc6a7fba720ae4d7ef
cylsg/EzUpFile/UpFileController.cs
@@ -5,6 +5,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.IdentityModel.Abstractions;
using StackExchange.Profiling.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -21,8 +22,16 @@
    [ApiDescriptionSettings("FileUpdata")]    
    public class UpFileController
    {
        /// <summary>
        /// 获取文件 上传token
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public Dictionary<string, string> GetToken([FromServices] IEzFileUploadService fileUploadService)
        {
            return fileUploadService.GetToken();
        }
        /// <summary>
        /// 上传身份证信息
        /// </summary>   
@@ -78,7 +87,7 @@
        public async Task<object> IaiAddPersoBase64([FromServices] IEzFileUploadService fileUploadService, UpDataFileData param)
        {
            if (string.IsNullOrEmpty(param.imgBase64))
                throw Oops.Oh("没有文件类容");
                throw Oops.Oh("没有文件内容");
            if (string.IsNullOrEmpty(param.Name))
                throw Oops.Oh("没有姓名");
            if (string.IsNullOrEmpty(param.CordId))