mirror of
https://github.com/liuwons/wxBot.git
synced 2026-10-16 20:50:39 +08:00
Fix bugs that "infinite selector == 2" problem
Fix the bug that after sending an image or file message the selector will be 2 forever util a text message was sent
This commit is contained in:
@@ -1390,7 +1390,7 @@ class WXBot:
|
|||||||
r.encoding = 'utf-8'
|
r.encoding = 'utf-8'
|
||||||
dic = json.loads(r.text)
|
dic = json.loads(r.text)
|
||||||
if dic['BaseResponse']['Ret'] == 0:
|
if dic['BaseResponse']['Ret'] == 0:
|
||||||
self.sync_key = dic['SyncKey']
|
self.sync_key = dic['SyncCheckKey']
|
||||||
self.sync_key_str = '|'.join([str(keyVal['Key']) + '_' + str(keyVal['Val'])
|
self.sync_key_str = '|'.join([str(keyVal['Key']) + '_' + str(keyVal['Val'])
|
||||||
for keyVal in self.sync_key['List']])
|
for keyVal in self.sync_key['List']])
|
||||||
return dic
|
return dic
|
||||||
|
|||||||
Reference in New Issue
Block a user