Browse Source

😒代码清理

zuohuaijun 2 years ago
parent
commit
477dc45776

+ 1 - 1
Admin.NET/Admin.NET.Application/Configuration/Captcha.json

@@ -3,7 +3,7 @@
 
   "CaptchaOptions": {
     "CaptchaType": 10, // 验证码类型0、1、2、3、4、5、6、7、8、9、10、11
-    "CodeLength": 2, // 验证码长度, 要放在CaptchaType设置后  当类型为算术表达式时,长度代表操作的个数, 例如2
+    "CodeLength": 1, // 验证码长度, 要放在CaptchaType设置后  当类型为算术表达式时,长度代表操作的个数, 例如2
     "ExpirySeconds": 60, // 验证码过期秒数
     "IgnoreCase": true, // 比较时是否忽略大小写
     "StoreageKeyPrefix": "", // 存储键前缀

+ 1 - 0
Admin.NET/Admin.NET.Core/Enum/MaritalStatusEnum.cs

@@ -11,6 +11,7 @@ public enum MaritalStatusEnum
     /// </summary>
     [Description("未知")]
     None = 0,
+
     /// <summary>
     /// 未婚
     /// </summary>

+ 2 - 2
Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs

@@ -111,12 +111,12 @@ public class SysOrgService : IDynamicApiController, ITransient
             if (orgIdList.Count < 1 || !orgIdList.Contains(input.Pid))
                 throw Oops.Oh(ErrorCodeEnum.D2003);
         }
-        
+
         // 删除与此父机构有关的用户机构缓存
         var pOrg = await _sysOrgRep.GetFirstAsync(u => u.Id == input.Pid);
         if (pOrg != null)
             DeleteUserOrgCache(pOrg.Id, pOrg.Pid);
-        
+
         var newOrg = await _sysOrgRep.AsInsertable(input.Adapt<SysOrg>()).ExecuteReturnEntityAsync();
         return newOrg.Id;
     }