This commit is contained in:
hackrobot
2024-07-18 11:19:17 +08:00
parent d264cc65ba
commit f0b5cdbfb5

View File

@@ -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: