Skip to content

Commit

Permalink
Fix bugs that "infinite selector == 2" problem
Browse files Browse the repository at this point in the history
Fix the bug that after sending an image or file message the selector will be 2 forever util a text message was sent
  • Loading branch information
Haskely authored Mar 27, 2017
1 parent 6ef4c8b commit 580edca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wxbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 580edca

Please sign in to comment.