|
@ -578,7 +578,7 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
} |
|
|
} |
|
|
govAccessToken = (String) authorizerRefreshToken.get(WxmpMessageConstant.AUTHORIZER_ACCESS_TOKEN); |
|
|
govAccessToken = (String) authorizerRefreshToken.get(WxmpMessageConstant.AUTHORIZER_ACCESS_TOKEN); |
|
|
} else { |
|
|
} else { |
|
|
String url = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/tokenlist"; |
|
|
String url = "http://198.18.132.1:10264/api/third/pacustomer/tokenlist"; |
|
|
JSONObject postData = new JSONObject(); |
|
|
JSONObject postData = new JSONObject(); |
|
|
postData.put("customerId", customerId); |
|
|
postData.put("customerId", customerId); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(postData)).getData(); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(postData)).getData(); |
|
@ -611,7 +611,7 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
@Override |
|
|
@Override |
|
|
public List<GetTemplateListResultDTO> templateList(GetTemplateListFormDTO formDTO) { |
|
|
public List<GetTemplateListResultDTO> templateList(GetTemplateListFormDTO formDTO) { |
|
|
GetTemplateListFormDTO dto = ConvertUtils.sourceToTarget(formDTO, GetTemplateListFormDTO.class); |
|
|
GetTemplateListFormDTO dto = ConvertUtils.sourceToTarget(formDTO, GetTemplateListFormDTO.class); |
|
|
String url = "https://epmet-cloud.elinkservice.cn/api/third/personaltemplate/templatelist"; |
|
|
String url = "http://198.18.132.1:10264/api/third/personaltemplate/templatelist"; |
|
|
//String url = "http://localhost:8080/api/third/personaltemplate/templatelist";
|
|
|
//String url = "http://localhost:8080/api/third/personaltemplate/templatelist";
|
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(dto)).getData(); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(dto)).getData(); |
|
|
logger.info("ThirdLoginServiceImpl.getUserWeChat:httpclient->url:" + url + ",结果->" + data); |
|
|
logger.info("ThirdLoginServiceImpl.getUserWeChat:httpclient->url:" + url + ",结果->" + data); |
|
@ -646,7 +646,7 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<TemplateListV2ResultDTO> templateListV2(TemplateListV2FormDTO formDTO) { |
|
|
public List<TemplateListV2ResultDTO> templateListV2(TemplateListV2FormDTO formDTO) { |
|
|
String url = "https://epmet-cloud.elinkservice.cn/api/third/personaltemplate/templatelistv2"; |
|
|
String url = "http://198.18.132.1:10264/api/third/personaltemplate/templatelistv2"; |
|
|
// String url = "http://localhost:8110/third/personaltemplate/templatelistv2";
|
|
|
// String url = "http://localhost:8110/third/personaltemplate/templatelistv2";
|
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(formDTO)).getData(); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(formDTO)).getData(); |
|
|
logger.info("ThirdLoginServiceImpl.templatelistv2:httpclient->url:" + url + ",结果->" + data); |
|
|
logger.info("ThirdLoginServiceImpl.templatelistv2:httpclient->url:" + url + ",结果->" + data); |
|
@ -676,7 +676,7 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
* @author sun |
|
|
* @author sun |
|
|
*/ |
|
|
*/ |
|
|
public List<CustomerTemplateListResultDTO> customerTemplateList(CustomerTemplateListFormDTO formDTO) { |
|
|
public List<CustomerTemplateListResultDTO> customerTemplateList(CustomerTemplateListFormDTO formDTO) { |
|
|
String url = "https://epmet-cloud.elinkservice.cn/api/third/personaltemplate/customertemplatelist"; |
|
|
String url = "http://198.18.132.1:10264/api/third/personaltemplate/customertemplatelist"; |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(formDTO)).getData(); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(formDTO)).getData(); |
|
|
logger.info("ThirdLoginServiceImpl.customerTemplateList:httpclient->url:" + url + ",结果->" + data); |
|
|
logger.info("ThirdLoginServiceImpl.customerTemplateList:httpclient->url:" + url + ",结果->" + data); |
|
|
JSONObject toResult = JSON.parseObject(data); |
|
|
JSONObject toResult = JSON.parseObject(data); |
|
@ -899,7 +899,7 @@ public class WxmpMessageServiceImpl implements WxmpMessageService { |
|
|
* @author sun |
|
|
* @author sun |
|
|
*/ |
|
|
*/ |
|
|
private PaCustomerDTO thirdCustomer(String customerId) { |
|
|
private PaCustomerDTO thirdCustomer(String customerId) { |
|
|
String url = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/" + customerId; |
|
|
String url = "http://198.18.132.1:10264/api/third/pacustomer/" + customerId; |
|
|
Result<String> data = HttpClientManager.getInstance().sendGet(url, null); |
|
|
Result<String> data = HttpClientManager.getInstance().sendGet(url, null); |
|
|
logger.info("WxmpMessageServiceImpl.thirdCustomer:httpclient->url:" + url + ",结果->" + data); |
|
|
logger.info("WxmpMessageServiceImpl.thirdCustomer:httpclient->url:" + url + ",结果->" + data); |
|
|
if (!data.success()) { |
|
|
if (!data.success()) { |
|
|