Explorar o código

😁修复sql拦截错误

zuohuaijun %!s(int64=2) %!d(string=hai) anos
pai
achega
a46ef3eee1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

+ 1 - 1
Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

@@ -208,7 +208,7 @@ public static class SqlSugarSetup
                 else if (entityInfo.PropertyName == "UpdateUserId")
                     entityInfo.SetValue(App.User?.FindFirst(ClaimConst.UserId)?.Value);
                 else if (entityInfo.PropertyName == "UpdateUserName")
-                    entityInfo.SetValue(App.User.FindFirst(ClaimConst.RealName)?.Value);
+                    entityInfo.SetValue(App.User?.FindFirst(ClaimConst.RealName)?.Value);
             }
         };