fix 删除测试方法

master
luoyang 6 years ago
parent 9c5b1eb6a4
commit 8e0ef8cdbc

@ -462,14 +462,4 @@ public class TestController implements ApplicationEventPublisherAware {
tradeSecureService.uploadSecureReport(DateTime.parse(date).toDate());
}
@RequestMapping(value = "/tempSend",method = RequestMethod.GET)
public String tempSend() {
try {
clientManager.tempSend();
} catch (Exception e) {
e.printStackTrace();
return "false";
}
return "success";
}
}

@ -385,5 +385,4 @@ public interface ClientManager {
void partnerCBChannelConfig(String clientMoniker, String channelKey, String channel_id);
void tempSend();
}

@ -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) {
TemplateMessage msg = new TemplateMessage(wxopenid, templateId, "https://mpay.royalpay.com.au/testMerchantPassword" + url);
msg.put("first", "尊敬的用户,该商户下账号密码已重置。", "#000000");

Loading…
Cancel
Save