Merge pull request #212 from chunpat/fixbug_qrcode_show
Remove duplication Qrcode Show
This commit is contained in:
commit
5495d76fdb
|
@ -101,11 +101,8 @@ class DouYinLogin(AbstractLogin):
|
|||
utils.logger.info("[DouYinLogin.login_by_qrcode] login qrcode not found please confirm ...")
|
||||
sys.exit()
|
||||
|
||||
# show login qrcode
|
||||
# utils.show_qrcode(base64_qrcode_img)
|
||||
partial_show_qrcode = functools.partial(utils.show_qrcode, base64_qrcode_img)
|
||||
asyncio.get_running_loop().run_in_executor(executor=None, func=partial_show_qrcode)
|
||||
utils.show_qrcode(base64_qrcode_img)
|
||||
await asyncio.sleep(2)
|
||||
|
||||
async def login_by_mobile(self):
|
||||
|
|
Loading…
Reference in New Issue