fix 474
This commit is contained in:
parent
1289bfc619
commit
63c979057f
|
@ -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<String, Object> result = new LinkedHashMap<String, Object>() {{
|
||||
put("PageCount", "0");
|
||||
put("data", new ArrayList<>());
|
||||
put("rows", "0");
|
||||
}};
|
||||
return new Result().ok(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue