From ec684785667344cc6b56b6a40abf85d9342f2fff Mon Sep 17 00:00:00 2001 From: Haskely Date: Tue, 28 Mar 2017 00:13:50 +0800 Subject: [PATCH] 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 --- wxbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxbot.py b/wxbot.py index fadaed1..f104701 100644 --- a/wxbot.py +++ b/wxbot.py @@ -1390,7 +1390,7 @@ def sync(self): r.encoding = 'utf-8' dic = json.loads(r.text) 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']) for keyVal in self.sync_key['List']]) return dic