修改初始化逻辑
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-04-24 10:40:58 +08:00
parent 0da73ce1db
commit 5c4388a2e7
1 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,13 @@ namespace IRaCIS.Core.Application.Triggers
await _userReposiotry.BatchUpdateNoTrackingAsync(t => t.EMail == user.EMail, u => new User() { IsFirstAdd = true }); await _userReposiotry.BatchUpdateNoTrackingAsync(t => t.EMail == user.EMail, u => new User() { IsFirstAdd = true });
} }
//只用初始化其中一个
if (beforeUser.IsFirstAdd == true && user.IsFirstAdd == false)
{
await _userReposiotry.BatchUpdateNoTrackingAsync(t => t.EMail == user.EMail, u => new User() { IsFirstAdd = false });
}
if (beforeUser.Password != user.Password) if (beforeUser.Password != user.Password)
{ {