From 63c979057f0bee66acd7774e1be787976fa0c524 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 8 Dec 2022 09:19:59 +0800 Subject: [PATCH] fix 474 --- .../resource/controller/ResourceController.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java index 1697749f..c704907f 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java @@ -524,7 +524,7 @@ public class ResourceController { SysUserEntity sysUser = sysUserDao.getById(userId); if (sysUser == null || sysUser.getGuid() == null) { - return new Result<>().error("该账号没有权限"); + return new Result<>().error("该账号没有权限获取资源列表"); } String url = "http://15.72.158.81/zyjk/ZywMessage.asmx?op=ZySPPort"; @@ -553,8 +553,13 @@ public class ResourceController { return new Result().ok(result); } catch (Exception e) { - e.printStackTrace(); - return new Result().ok(new ArrayList(0)); + logger.error("资源列表转发异常", e); + Map result = new LinkedHashMap() {{ + put("PageCount", "0"); + put("data", new ArrayList<>()); + put("rows", "0"); + }}; + return new Result().ok(result); } }