From 96e5f0ff56cafa996910fb14002b1ca96cb82c3d Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Mon, 13 Feb 2023 00:39:35 -0500 Subject: [PATCH] =?UTF-8?q?USVT-136=20=E5=9B=A0=E4=B8=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E7=9A=84=E5=BE=AE=E4=BF=A1=E5=85=AC=E4=BC=97=E5=8F=B7=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=BC=82=E6=AD=A5=E6=B6=88=E6=81=AF=E7=AD=96?= =?UTF-8?q?=E7=95=A5=EF=BC=8C=E5=9B=A0=E6=AD=A4=E6=9A=82=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=BC=82=E6=AD=A5=E6=B6=88=E6=81=AF=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/impl/WeChatService.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/northtecom/visatrack/api/service/impl/WeChatService.java b/src/main/java/com/northtecom/visatrack/api/service/impl/WeChatService.java index 5a1c431..08dd4a3 100644 --- a/src/main/java/com/northtecom/visatrack/api/service/impl/WeChatService.java +++ b/src/main/java/com/northtecom/visatrack/api/service/impl/WeChatService.java @@ -178,18 +178,18 @@ public class WeChatService { future.cancel(true); // may or may not desire this } - try { - sendMessage(toUserName); - } catch (WxErrorException e) { - throw new RuntimeException(e); - } +// try { +// sendMessage(toUserName); +// } catch (WxErrorException e) { +// throw new RuntimeException(e); +// } -// weChatMessage.setToUserName(toUserName); -// weChatMessage.setFromUserName(fromUserName); -// weChatMessage.setContent(contentGPT); -// weChatMessage.setCreateTime(Instant.now().toEpochMilli()); + weChatMessage.setToUserName(toUserName); + weChatMessage.setFromUserName(fromUserName); + weChatMessage.setContent(contentGPT); + weChatMessage.setCreateTime(Instant.now().toEpochMilli()); - return "success";// WeChatUtils.covertToWeChatMessageXmlStr(weChatMessage); + return WeChatUtils.covertToWeChatMessageXmlStr(weChatMessage); } public String sendMessage(String toUserName) throws WxErrorException {