Sfoglia il codice sorgente

😁修复sql拦截错误

zuohuaijun 2 anni fa
parent
commit
a46ef3eee1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
             }
         };