diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/MessageServiceImpl.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/MessageServiceImpl.java index 9d2a677b9..07acc29e3 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/MessageServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/MessageServiceImpl.java @@ -25,10 +25,7 @@ import me.chanjar.weixin.common.error.WxErrorException; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; -import org.springframework.http.client.ClientHttpRequestFactory; -import org.springframework.http.client.SimpleClientHttpRequestFactory; import org.springframework.stereotype.Service; -import org.springframework.web.client.RestTemplate; import java.text.SimpleDateFormat; import java.util.*; @@ -320,7 +317,6 @@ public class MessageServiceImpl implements MessageService { String parmStr = jsonObject.toJSONString(); String sr = HttpRequest.sendPost(url,parmStr); - JSONObject json = JSONObject.parseObject(sr); return sr; } @@ -338,8 +334,6 @@ public class MessageServiceImpl implements MessageService { String sr = HttpRequest.sendPost(url,""); JSONObject json = JSONObject.parseObject(sr); - // 获取会话密钥(session_key) - // 用户的唯一标识(openid) String access_token = (String) json.get("access_token"); return access_token; }