Commit b3113684 by chongli

umeng社区下线,兼容老版本

parent dbb4ae4e
......@@ -20,6 +20,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
import com.alibaba.fastjson.JSONObject;
import com.ctrip.fun.common.vo.Request;
import com.ctrip.fun.common.vo.Response;
import com.ctrip.fun.common.vo.umeng.UmengAccessTokenRequestVO;
......@@ -99,6 +100,12 @@ public class UmengService {
}else if("F".equals(userExt.getGender())){
umengAccessToken.setGender(0);
}
JSONObject JSONObject = new JSONObject();
JSONObject.put("240", "https://pages.iwanoutdoor.com/ResIwanOnline/mobile_image/default_header.png");
JSONObject.put("origin","https://pages.iwanoutdoor.com/ResIwanOnline/mobile_image/default_header.png");
JSONObject.put("640","https://pages.iwanoutdoor.com/ResIwanOnline/mobile_image/default_header.png");
umengAccessToken.setIcon_url(JSONObject);
umengAccessToken.setHeadImage(simpleUser.getHeadImage());
response.setBody(umengAccessToken);
return response;
} catch (Exception e) {
......
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 sign in to comment