Skip to content

Commit

Permalink
🎨 binarywang#2705 【小程序】异步安全校验事件中消息重复判断代码修复
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang authored and 0katekate0 committed Jun 22, 2022
1 parent ec97c77 commit a3cff27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ public static class EventType {
*/
public static final String CARD_USER_GIFTING_CARD = "user_gifting_card";

/**
* 异步安全校验事件
*/
public static final String WXA_MEDIA_CHECK = "wxa_media_check";

/**
* 卡券事件:用户核销卡券
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ private boolean isMsgDuplicated(WxMaMessage wxMessage) {
messageId.append("-").append(wxMessage.getToUser());
}

if (StringUtils.isNotEmpty(wxMessage.getTraceId())) {
messageId.append("-").append(wxMessage.getTraceId());
}

return this.messageDuplicateChecker.isDuplicate(messageId.toString());
}

Expand Down

0 comments on commit a3cff27

Please sign in to comment.