|
|
@ -4486,20 +4486,6 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void tempSend() {
|
|
|
|
|
|
|
|
String tmpOpenId = "o32MzuPR4AnVN94C4ISc6Y1n7xKI";
|
|
|
|
|
|
|
|
String account = "?accounts=aa,a123456a,1,PINE&accounts=dadasa,a123456a,1,PINE&accounts=asdasdasd,a123456a,1,PINE&accounts=tetsa,a123456a,1,PINE";
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
MpWechatApi paymentApi = mpWechatApiProvider.getNewPaymentApi();
|
|
|
|
|
|
|
|
TemplateMessage msg = initSendTestPasswordTemplate(tmpOpenId, paymentApi.getTemplateId("test-merchant-password"), account);
|
|
|
|
|
|
|
|
paymentApi.sendTemplateMessage(msg);
|
|
|
|
|
|
|
|
} catch (WechatException e) {
|
|
|
|
|
|
|
|
logger.error("Wechat Message Error,密码修改完成" + e.getMessage());
|
|
|
|
|
|
|
|
publisher.publishEvent(new WechatExceptionEvent(this, e, "测试商户密码修改完成"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TemplateMessage initSendTestPasswordTemplate(String wxopenid, String templateId,String url) {
|
|
|
|
private TemplateMessage initSendTestPasswordTemplate(String wxopenid, String templateId,String url) {
|
|
|
|
TemplateMessage msg = new TemplateMessage(wxopenid, templateId, "https://mpay.royalpay.com.au/testMerchantPassword" + url);
|
|
|
|
TemplateMessage msg = new TemplateMessage(wxopenid, templateId, "https://mpay.royalpay.com.au/testMerchantPassword" + url);
|
|
|
|
msg.put("first", "尊敬的用户,该商户下账号密码已重置。", "#000000");
|
|
|
|
msg.put("first", "尊敬的用户,该商户下账号密码已重置。", "#000000");
|
|
|
|