update
This commit is contained in:
13
main.py
13
main.py
@@ -258,7 +258,6 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
||||
else:
|
||||
print("未找到匹配项,或者有特殊字符")
|
||||
return {"code": 200, "success": "ok", "message": "未找到匹配项,或者有特殊字符"}
|
||||
|
||||
|
||||
|
||||
# 创建用户
|
||||
@@ -461,6 +460,18 @@ def kp(event_data):
|
||||
pic=
|
||||
"https://www.hackrobot.cn/wp-content/uploads/2023/05/cropped-cropped-Screenshot-2023-05-22-at-17.26.38.png"
|
||||
)
|
||||
else:
|
||||
# chaglm api在本地8000端口
|
||||
# winHookUrl='http://192.168.31.184:8000/img'
|
||||
winHookUrl='http://chatbot.hackrobot.cn/img'
|
||||
|
||||
payload = {
|
||||
'query': {
|
||||
'query': "test"
|
||||
},
|
||||
}
|
||||
res = requests.post(config.winHookUrl, data=payload)
|
||||
r = res.json()
|
||||
|
||||
# if msg in ['腾讯云']:
|
||||
# # 发送小程序
|
||||
|
||||
Reference in New Issue
Block a user