瀏覽代碼

update qrcode

master
lanvent 1 年之前
父節點
當前提交
cec674cb47
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      channel/wechat/wechat_channel.py

+ 4
- 2
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):


Loading…
取消
儲存