Explorar el Código

😁修复sql拦截错误

zuohuaijun hace 2 años
padre
commit
a46ef3eee1
Se han modificado 1 ficheros con 1 adiciones y 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);
             }
         };