From 9b72df300eb65118400f7ddc41abf0934df9eef3 Mon Sep 17 00:00:00 2001 From: shushi Date: Tue, 19 Nov 2019 16:40:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E6=88=90?= =?UTF-8?q?=E5=91=98=E5=90=8C=E6=97=B6=E5=9B=9E=E8=B0=83create=5Fuser?= =?UTF-8?q?=E5=92=8Cupdate=5Fuser=E4=BA=8B=E4=BB=B6=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=88=90=E9=87=8D=E5=A4=8D=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java index 947ac28b41..b5424be03e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/message/WxCpMessageRouter.java @@ -219,8 +219,11 @@ private boolean isMsgDuplicated(WxCpXmlMessage wxMessage) { messageId.append("-").append(wxMessage.getUserId()); } - return this.messageDuplicateChecker.isDuplicate(messageId.toString()); + if (StringUtils.isNotEmpty(wxMessage.getChangeType())) { + messageId.append("-").append(wxMessage.getChangeType()); + } + return this.messageDuplicateChecker.isDuplicate(messageId.toString()); } /**