mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 14:17:11 +08:00
feat: itchat show qrcode using viewer
This commit is contained in:
@@ -70,6 +70,13 @@ def _check(func):
|
||||
def qrCallback(uuid,status,qrcode):
|
||||
# logger.debug("qrCallback: {} {}".format(uuid,status))
|
||||
if status == '0':
|
||||
try:
|
||||
from PIL import Image
|
||||
img = Image.open(io.BytesIO(qrcode))
|
||||
thread_pool.submit(img.show,"QRCode")
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
import qrcode
|
||||
url = f"https://login.weixin.qq.com/l/{uuid}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user