diff --git a/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java b/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java index 840bb9157..570197848 100644 --- a/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java +++ b/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java @@ -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"; - } } diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/ClientManager.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/ClientManager.java index 40e190d7b..44511c48a 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/ClientManager.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/ClientManager.java @@ -385,5 +385,4 @@ public interface ClientManager { void partnerCBChannelConfig(String clientMoniker, String channelKey, String channel_id); - void tempSend(); } diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index 102c55dc3..d2eb34f8f 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -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");