This commit is contained in:
wangliwen 2022-12-08 09:19:59 +08:00
parent 1289bfc619
commit 63c979057f
1 changed files with 8 additions and 3 deletions

View File

@ -524,7 +524,7 @@ public class ResourceController {
SysUserEntity sysUser = sysUserDao.getById(userId); SysUserEntity sysUser = sysUserDao.getById(userId);
if (sysUser == null || sysUser.getGuid() == null) { 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"; String url = "http://15.72.158.81/zyjk/ZywMessage.asmx?op=ZySPPort";
@ -553,8 +553,13 @@ public class ResourceController {
return new Result().ok(result); return new Result().ok(result);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); logger.error("资源列表转发异常", e);
return new Result().ok(new ArrayList(0)); Map<String, Object> result = new LinkedHashMap<String, Object>() {{
put("PageCount", "0");
put("data", new ArrayList<>());
put("rows", "0");
}};
return new Result().ok(result);
} }
} }