记得上下班打卡 | git大法好,push需谨慎

Commit 91767bd1 authored by GaoHu's avatar GaoHu

exit

parent f4d98653
...@@ -85,13 +85,10 @@ public class GoblinOrderUtils { ...@@ -85,13 +85,10 @@ public class GoblinOrderUtils {
header.add("Accept", "application/json;charset=UTF-8"); header.add("Accept", "application/json;charset=UTF-8");
String returnData = HttpUtil.post(adamUrl + " /adam/user/info", header); String returnData = HttpUtil.post(adamUrl + " /adam/user/info", header);
ResponseDto<List<AdamUserProfileVo>> innerReturnVo = JsonUtils.fromJson(returnData, new TypeReference<ResponseDto<List<AdamUserProfileVo>>>() { ResponseDto<AdamUserProfileVo> innerReturnVo = JsonUtils.fromJson(returnData, new TypeReference<ResponseDto<AdamUserProfileVo>>() {
}); });
if(innerReturnVo.getData().size()>0){
return innerReturnVo.getData().get(0); return innerReturnVo.getData();
}else{
return null;
}
} catch (Exception e) { } catch (Exception e) {
log.error("获取用户头像失败", e); log.error("获取用户头像失败", e);
return AdamUserProfileVo.getNew(); return AdamUserProfileVo.getNew();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment