update
This commit is contained in:
13
main.py
13
main.py
@@ -260,7 +260,6 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
|||||||
return {"code": 200, "success": "ok", "message": "未找到匹配项,或者有特殊字符"}
|
return {"code": 200, "success": "ok", "message": "未找到匹配项,或者有特殊字符"}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 创建用户
|
# 创建用户
|
||||||
@app.post("/users")
|
@app.post("/users")
|
||||||
# schemas.UserCreate决定了swagger文档
|
# schemas.UserCreate决定了swagger文档
|
||||||
@@ -461,6 +460,18 @@ def kp(event_data):
|
|||||||
pic=
|
pic=
|
||||||
"https://www.hackrobot.cn/wp-content/uploads/2023/05/cropped-cropped-Screenshot-2023-05-22-at-17.26.38.png"
|
"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 ['腾讯云']:
|
# if msg in ['腾讯云']:
|
||||||
# # 发送小程序
|
# # 发送小程序
|
||||||
|
|||||||
Reference in New Issue
Block a user