From 7387cdac83719d4d00826ab37ee31c7a1e3914c7 Mon Sep 17 00:00:00 2001 From: "heavyrain.lee" Date: Fri, 25 Oct 2019 11:43:26 +0800 Subject: [PATCH] =?UTF-8?q?@=E5=85=A8=E4=BD=93=E6=97=B6=EF=BC=8C=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E4=BA=BA=E4=B8=8D=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/wildfirechat/app/ServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/wildfirechat/app/ServiceImpl.java b/src/main/java/cn/wildfirechat/app/ServiceImpl.java index d6da2ce..f12a01e 100644 --- a/src/main/java/cn/wildfirechat/app/ServiceImpl.java +++ b/src/main/java/cn/wildfirechat/app/ServiceImpl.java @@ -45,7 +45,8 @@ public RestResult onReceiveMessage(SendMessageData messageData) { if (!needResponse && messageData.getConv().getType() == 1) { if (messageData.getPayload() != null) { if (messageData.getPayload().getMentionedType() == 2) { - needResponse = true; + //needResponse = true; + needResponse = false; //@全体时,机器人就别乱回复捣乱了 } else if (messageData.getPayload().getMentionedType() == 1) { if (messageData.getPayload().getMentionedTarget() != null && messageData.getPayload().getMentionedTarget().contains(mRobotConfig.getIm_id())) { needResponse = true;