|
|
@ -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); |
|
|
|