From 41ef326915f3b468069b7b4994ef13bda28aa0ea Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Wed, 17 Mar 2021 09:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yipin/liuwanr/controller/UserInfoController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java b/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java index 37a4672..0ea5907 100644 --- a/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java +++ b/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java @@ -361,6 +361,11 @@ public class UserInfoController { return resp; }else{ List list = permissionService.getPermission(roleIds); + if (list == null){ + resp.setStatus(401); + resp.setErrmessage("无登录权限,请联系管理员处理!"); + return resp; + } map.put("retvalue",ret.get("retvalue")); map.put("listValue",list); }