|
|
@@ -1312,4 +1312,26 @@ public class AccountUtils {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ public static Map<String, Object> getUserInfo(Long userUU, Long spaceUU) throws Exception {
|
|
|
+ String url = AccountConfig.getUserSaveUrl();
|
|
|
+ if (!StringUtils.isEmpty(url)) {
|
|
|
+ url = url + "/info/userUU";
|
|
|
+ ModelMap data = new ModelMap();
|
|
|
+ data.put("userUU", userUU);
|
|
|
+ data.put("spaceUU", spaceUU);
|
|
|
+ HttpUtil.ResponseWrap res = HttpUtil.doGet(url, data);
|
|
|
+ if (!res.isSuccess()) {
|
|
|
+ throw new Exception(res.getContent());
|
|
|
+ } else {
|
|
|
+ ResultWrap result = JSON.parseObject(res.getContent(), ResultWrap.class);
|
|
|
+ if (!result.isSuccess()) {
|
|
|
+ throw new Exception(result.getErrMsg());
|
|
|
+ } else if (result.getContent() != null) {
|
|
|
+ return JSON.parseObject(result.getContent().toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|