Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 【企业微信】修复不同的消息推送会判断为重复的问题 #2880

Merged
merged 1 commit into from
Nov 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutMessage;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.concurrent.*;

/**
Expand Down Expand Up @@ -274,6 +271,9 @@ private boolean isMsgDuplicated(WxCpXmlMessage wxMessage) {
.append("-").append(wxMessage.getCreateTime())
.append("-").append(wxMessage.getFromUserName());
}
if (Objects.nonNull(wxMessage.getApprovalInfo())) {
append(messageId, wxMessage.getApprovalInfo().getSpNo());
}
append(messageId, wxMessage.getUserId());
append(messageId, wxMessage.getChangeType());
append(messageId, wxMessage.getTagId());
Expand Down