From 02a95345aa0ae9b6869f5fbbd4338cb6d78c41cd Mon Sep 17 00:00:00 2001 From: lanvent Date: Sun, 2 Apr 2023 14:13:38 +0800 Subject: [PATCH] fix: add more qrcode api --- channel/wechat/wechat_channel.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index f82cb4d..1d73c93 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -73,8 +73,15 @@ def qrCallback(uuid,status,qrcode): 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_api1="https://api.isoyu.com/qr/?m=1&e=L&p=20&url={}".format(url) + qr_api2="https://api.qrserver.com/v1/create-qr-code/?size=400×400&data={}".format(url) + qr_api3="https://api.pwmqr.com/qrcode/create/?url={}".format(url) + qr_api4="https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?text={}".format(url) + print("You can also scan QRCode in any website below:") + print(qr_api3) + print(qr_api4) + print(qr_api2) + print(qr_api1) qr = qrcode.QRCode(border=1) qr.add_data(url)