This commit is contained in:
hackrobot
2024-04-28 14:38:26 +08:00
parent df985db399
commit da45c2017d

View File

@@ -50,11 +50,12 @@ def chatglmApi(msg, data, group, account_wxid, wxid, wx_name):
# chaglm api在本地8000端口
# winHookUrl='http://192.168.31.184:8000/img'
winHookUrl = 'http://chatbot.hackrobot.cn/img'
payload = {'query': msg}
if "@异度世界" in msg:
msg = re.sub(r"@异度世界\[@emoji=\d+\]", "", msg)
print("msg=====>", msg)
payload = {'query': msg}
newPayload = json.loads(json.dumps(payload))
res = requests.post(winHookUrl, json=newPayload)
r = res.json()