Skip to content

增加了qrCallback中的终止登陆功能

Compare
Choose a tag to compare
@littlecodersh littlecodersh released this 08 Mar 02:47
· 33 commits to master since this release
import itchat

def qrCallback(uuid, status, qrcode):
    if status == '400':
        itchat.logout()

itchat.auto_login(True, qrCallback=qrCallback)

if itchat.originInstance.alive:
    itchat.run()
else:
    print('qrcode timeout and exit')