Browse Source

订阅消息设置

dev_shibei_match
zhaoqifeng 5 years ago
parent
commit
232d5e4e40
  1. 4
      epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/SubscribeServiceImpl.java

4
epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/SubscribeServiceImpl.java

@ -206,7 +206,7 @@ public class SubscribeServiceImpl implements SubscribeService {
customerNames.add(paCustomerDTO.getCustomerName());
continue;
}
WxResult<String> wxResult1 = wxMaSubscribeService.addTemplate(authInfo.getAuthorizerAccessToken(), request);
WxResult<String> wxResult1 = wxMaSubscribeService.addTemplate(authDTO.getAuthorizerAccessToken(), request);
if (!wxResult1.success()) {
log.error("客户[" + paCustomerDTO.getCustomerName() + "]添加模板失败,原因:" + wxResult1.getErrorCode() + wxResult1.getErrorMsg());
customerNames.add(paCustomerDTO.getCustomerName());
@ -214,7 +214,7 @@ public class SubscribeServiceImpl implements SubscribeService {
}
String tmplId = wxResult1.getData();
PersonalTemplateDTO templateDTO = new PersonalTemplateDTO();
templateDTO.setCustomerId(authInfo.getCustomerId());
templateDTO.setCustomerId(paCustomerDTO.getId());
templateDTO.setClientType(authInfo.getClientType());
templateDTO.setAppId(authDTO.getAuthorizerAppid());
templateDTO.setPid(priTmplId);

Loading…
Cancel
Save