fix 移除无用代码

This commit is contained in:
2024-05-31 16:04:41 +08:00
parent fc0da62986
commit abe6a52ee1
9 changed files with 70 additions and 146 deletions

View File

@@ -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)
{