Merge branch 'master' into feature-考勤

This commit is contained in:
youngq 2024-09-20 15:38:13 +08:00
commit d6cc5d36b4
1 changed files with 8 additions and 1 deletions

View File

@ -206,7 +206,14 @@ namespace WGShare.API.Controllers.Frontend
x.Pwd = x.Pwd.MDString();
x.ScreenShareId = UserShareIdHelper.GenerateUnique8DigitNumber();
x.TenantId = TenantId;
x.RoleId = x.RoleId == "管理员" ? "1" : "2";
var roleId = "2";
if (x.RoleId == "管理员")
roleId = "1";
else if (x.RoleId == "房间管理员")
roleId = "3";
x.RoleId = roleId;
});
await _sqlSugar.Insertable(users).ExecuteCommandAsync();