fix 移除无用代码
This commit is contained in:
@@ -88,7 +88,7 @@ public class RoleService : IRoleService
|
||||
if (request.RoleId.HasValue)
|
||||
{
|
||||
var existsRole = await _dbContext.Queryable<RoleEntity>().Where(x => x.Id == request.RoleId).AnyAsync();
|
||||
existsUser.ThrowIfFalse("分配的角色不存在");
|
||||
existsRole.ThrowIfFalse("分配的角色不存在");
|
||||
|
||||
if (userRole == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user