Skip to content

Commit 95d8bd3

Browse files
committed
issue #99 Wx*MessageRouter.isDuplicateMessage方法逻辑错误
1 parent 1e5e098 commit 95d8bd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpMessageRouter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected boolean isDuplicateMessage(WxCpXmlMessage wxMessage) {
204204
messageId = String.valueOf(wxMessage.getCreateTime())
205205
+ "-" +String.valueOf(wxMessage.getAgentId() == null ? "" : wxMessage.getAgentId())
206206
+ "-" + wxMessage.getFromUserName()
207-
+ "-" + String.valueOf(wxMessage.getEventKey() == null ? "" : wxMessage.getEvent());
207+
+ "-" + String.valueOf(wxMessage.getEventKey() == null ? "" : wxMessage.getEventKey());
208208
;
209209
} else {
210210
messageId = String.valueOf(wxMessage.getMsgId());

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageRouter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected boolean isDuplicateMessage(WxMpXmlMessage wxMessage) {
203203
if (wxMessage.getMsgId() == null) {
204204
messageId = String.valueOf(wxMessage.getCreateTime())
205205
+ "-" + wxMessage.getFromUserName()
206-
+ "-" + String.valueOf(wxMessage.getEventKey() == null ? "" : wxMessage.getEvent());
206+
+ "-" + String.valueOf(wxMessage.getEventKey() == null ? "" : wxMessage.getEventKey());
207207
;
208208
} else {
209209
messageId = String.valueOf(wxMessage.getMsgId());

0 commit comments

Comments
 (0)