diff --git a/main.py b/main.py index 1b6daaa..4bd54df 100644 --- a/main.py +++ b/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 ['腾讯云']: # # 发送小程序