mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 14:17:11 +08:00
update qrcode
This commit is contained in:
@@ -72,13 +72,15 @@ def qrCallback(uuid,status,qrcode):
|
|||||||
if status == '0':
|
if status == '0':
|
||||||
import qrcode
|
import qrcode
|
||||||
url = f"https://login.weixin.qq.com/l/{uuid}"
|
url = f"https://login.weixin.qq.com/l/{uuid}"
|
||||||
|
|
||||||
|
qr_api="https://api.isoyu.com/qr/?m=1&e=L&p=20&url={}".format(url)
|
||||||
|
print("You can also scan QRCode in the website below:\n{}".format(qr_api))
|
||||||
|
|
||||||
qr = qrcode.QRCode(border=1)
|
qr = qrcode.QRCode(border=1)
|
||||||
qr.add_data(url)
|
qr.add_data(url)
|
||||||
qr.make(fit=True)
|
qr.make(fit=True)
|
||||||
qr.print_ascii(invert=True)
|
qr.print_ascii(invert=True)
|
||||||
|
|
||||||
qr_api="https://api.isoyu.com/qr/?m=1&e=L&p=20&url={}".format(url)
|
|
||||||
print("You can also scan QRCode in website below:\n{}".format(qr_api))
|
|
||||||
@singleton
|
@singleton
|
||||||
class WechatChannel(ChatChannel):
|
class WechatChannel(ChatChannel):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user