From f0b5cdbfb5c8afb8973f4b216efa16b1e124ea64 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 18 Jul 2024 11:19:17 +0800 Subject: [PATCH] update --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index a60989b..03f9193 100644 --- a/app/main.py +++ b/app/main.py @@ -137,6 +137,7 @@ def generateqr(url="http://nomad.hackrobot.cn", # url="http://192.168.31.219:10086" if wxid: url += f"?wxid={wxid}" + # 创建二维码 qr = qrcode.QRCode(version=1, box_size=5, border=2) # 调整二维码大小 @@ -226,7 +227,7 @@ def add_user(nickname: Optional[Any] = None, elif keyword == 'qrcode': print("keyword==qrcode") combined_image_path = generateqr(url="http://nomad.hackrobot.cn", - wxid='qrcode', + # wxid='qrcode', group_image_path="images/nomadqr.jpg") return FileResponse(combined_image_path) else: