Skip to content

Commit

Permalink
分配权限需要退出重新登录,给明确提示
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Jun 18, 2024
1 parent 2747868 commit 3a07d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Result<?> handleDuplicateKeyException(DuplicateKeyException e){
@ExceptionHandler({UnauthorizedException.class, AuthorizationException.class})
public Result<?> handleAuthorizationException(AuthorizationException e){
log.error(e.getMessage(), e);
return Result.noauth("没有权限,请联系管理员授权");
return Result.noauth("没有权限,请管理员授权后,退出重新登录!");
}

@ExceptionHandler(Exception.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class CommonController {
*/
@GetMapping("/403")
public Result<?> noauth() {
return Result.error("没有权限,请联系管理员授权");
return Result.error("没有权限,请管理员授权后,退出重新登录!");
}

/**
Expand Down

0 comments on commit 3a07d5a

Please sign in to comment.