WeixinBot icon indicating copy to clipboard operation
WeixinBot copied to clipboard

发送图片成功后,synccheck与sync API 不停的调用,此刻并没有消息

Open shiguofu2012 opened this issue 6 years ago • 1 comments

最近在使用微信接口的时候,碰到如下问题:

调用sendmsgimg发送图片接口,图片发送成功; synccheck接口返回selector 为2,可能收到消息,之后调用sync接口拉取消息,此刻并没有消息; 之后synccheck一直返回selector 为2, 不停的调用sync接口,直到收到消息后才会停止; 很疑惑, 不知道大家有没有碰到这种问题,或者有没有经验帮忙提示下思路,如何调试这种情况?

感谢大神了!

shiguofu2012 avatar Oct 12 '18 16:10 shiguofu2012

这个是因为发送图片之后会返回新的synckey 和 synccheckkey 这个时候需要更新,下次synccheck需要用到新的key

ZhangSJJ avatar Jul 23 '20 02:07 ZhangSJJ