优化常量设置&新增导入用户方法

This commit is contained in:
不做码农
2022-10-17 19:39:56 +08:00
parent 6c3efee19a
commit 65da2e3f2a
4 changed files with 59 additions and 2 deletions

View File

@@ -222,7 +222,7 @@ namespace ZR.Service
{
var roleInfo = GetFirst(x => x.RoleId == roleid);
return roleInfo.RoleKey == "admin";
return roleInfo.RoleKey == GlobalConstant.AdminRole;
}
/// <summary>