Compare commits

..

No commits in common. "d6cc5d36b4ec45760e474aa1867093103c6d6773" and "7e5d20a64a22073da99be34afe1d228d5b906773" have entirely different histories.

1 changed files with 1 additions and 8 deletions

View File

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