issue #69 添加Session的支持,添加测试用例

This commit is contained in:
Daniel Qian
2015-01-22 12:36:51 +08:00
parent d18b66c38d
commit 6368ca6816
16 changed files with 514 additions and 132 deletions

View File

@@ -82,6 +82,9 @@ public class WxMessageInMemoryDuplicateChecker implements WxMessageDuplicateChec
@Override
public boolean isDuplicate(Long wxMsgId) {
if (wxMsgId == null) {
return false;
}
checkBackgroundProcessStarted();
Long timestamp = msgId2Timestamp.putIfAbsent(wxMsgId, System.currentTimeMillis());
if (timestamp == null) {