update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user