From cec674cb47a1ddff4d3952ae9b47c983cdf2e62b Mon Sep 17 00:00:00 2001 From: lanvent Date: Sun, 2 Apr 2023 04:44:08 +0800 Subject: [PATCH] update qrcode --- channel/wechat/wechat_channel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index 0f818cb..f82cb4d 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -72,13 +72,15 @@ def qrCallback(uuid,status,qrcode): if status == '0': import qrcode 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.add_data(url) qr.make(fit=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 class WechatChannel(ChatChannel): def __init__(self):