From 55afd862f717fa4e441ec0a266997bf881da4ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=98=89=E4=BC=9F?= <1724121454@qq.com> Date: Sat, 21 Aug 2021 13:17:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=B6=88=E6=81=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/foreverwin/mesnac/common/util/ActiveMQUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/foreverwin/mesnac/common/util/ActiveMQUtil.java b/common/src/main/java/com/foreverwin/mesnac/common/util/ActiveMQUtil.java index b0fd6a6f..b6244cf3 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/util/ActiveMQUtil.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/util/ActiveMQUtil.java @@ -15,16 +15,16 @@ public class ActiveMQUtil { @Autowired - private JmsMessagingTemplate defaultJmsTemplate; + private JmsMessagingTemplate mesJmsTemplate; public void wechatSendMessage(String user, String text) { String queue = "send.weChat.notice"; JSONObject jsonObject = new JSONObject(); try{ - jsonObject.put("TO_USER", "@all"); + jsonObject.put("TO_USER", user); jsonObject.put("CONTENT",text); // defaultJmsTemplate.getJmsTemplate().setReceiveTimeout(TimeUnit.SECONDS.toMillis(3)); - defaultJmsTemplate.convertAndSend(queue, jsonObject.toString()); + mesJmsTemplate.convertAndSend(queue, jsonObject.toString()); // if (StringUtil.isBlank(message)) { // //记日志 // }