Przeglądaj źródła

😁修复sql拦截错误

zuohuaijun 2 lat temu
rodzic
commit
a46ef3eee1

+ 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);
             }
         };