node.js - 为什么微信的消息MsgId出现重复了,无法排重了。。
大家讲道理
大家讲道理 2017-04-17 15:57:46
0
1
1236

以前对消息排重是没问题的,MsgId不是重复的,可是今天测试发现,居然微信服务器发过来的有几次不同消息内容的MsgId居然是一样的,这种情况该怎么排重,排重的话会把其它一两次不同消息的给排除掉的,那样的话就接收不到了。。
急。。。

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
小葫芦

1. Regarding retry message duplication, it is recommended to use msgid to deduplicate messages.

2. If the WeChat server does not receive a response within five seconds, it will disconnect the connection and re-initiate the request, retrying three times in total. If the server cannot guarantee to process and reply within five seconds, you can directly reply with an empty string. The WeChat server will not do anything with this and will not initiate a retry. For details, please see "Sending Messages - Passive Reply to Messages".

WeChat public platform developer documentation--receiving ordinary messages
According to the official documentation, MsgId should not be repeated. . .

In this case, you can only ask WeChat’s technical staff. . . With WeChat's technology, it should not be possible to duplicate IDs. . So is it possible that there is another problem?

Or is it possible a man-in-the-middle attack? Message tampering, forgery?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template