fix: 修复添加管理员失败无信息提示

This commit is contained in:
misworga831
2023-06-16 16:21:57 +08:00
parent 0bdb39797d
commit 201943994b
2 changed files with 3 additions and 1 deletions

View File

@@ -168,10 +168,11 @@ public class AdminUserManagerController {
throw new ServiceException(ResultCode.PERMISSION_BEYOND_TEN);
}
adminUserService.saveAdminUser(adminUser, roles);
return ResultUtil.success();
} catch (Exception e) {
log.error("添加用户错误", e);
return ResultUtil.error(ResultCode.USER_ADD_ERROR);
}
return ResultUtil.success();
}
@PutMapping(value = "/enable/{userId}")