Skip to content

Commit

Permalink
fixed issue #96
Browse files Browse the repository at this point in the history
  • Loading branch information
master-coder-ll committed May 4, 2020
1 parent e5e3c3f commit 07c0519
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ public Result getPAccount(String accountNo,String domain) {
//新版应该根据域名查找服务器

Server server= serverService.findByDomain(domain,account.getLevel());
//Integer serverId = account.getServerId();
//https://github.com/master-coder-ll/v2ray-web-manager/issues/96
if (server.getLevel()<account.getLevel()) return Result.builder().code(500).message("账号等级不够").build();

User user = userRepository.findById(userId).orElse(null);
if (user ==null) throw new NullPointerException("user is null");
Expand Down

0 comments on commit 07c0519

Please sign in to comment.