fix: 修复审计日志判断当前用户为空的问题
This commit is contained in:
@@ -104,7 +104,7 @@ namespace Yi.Framework.SqlSugarCore
|
||||
}
|
||||
if (entityInfo.PropertyName.Equals(nameof(IAuditedObject.LastModifierId)))
|
||||
{
|
||||
if (CurrentUser != null)
|
||||
if (CurrentUser.Id != null)
|
||||
{
|
||||
entityInfo.SetValue(CurrentUser.Id);
|
||||
}
|
||||
@@ -130,7 +130,7 @@ namespace Yi.Framework.SqlSugarCore
|
||||
}
|
||||
if (entityInfo.PropertyName.Equals(nameof(IAuditedObject.CreatorId)))
|
||||
{
|
||||
if (CurrentUser != null)
|
||||
if (CurrentUser.Id != null)
|
||||
{
|
||||
entityInfo.SetValue(CurrentUser.Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user