This commit is contained in:
邹宗楠
2025-02-21 09:56:11 +08:00
parent 1b72c9b0a0
commit 6180f69883
3 changed files with 11 additions and 6 deletions

View File

@@ -118,5 +118,12 @@ func pushIMToGyOrPet(msg *mtwmapi.ImCallbackMsg, serverType string) {
}
request.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
cl.Do(request)
request.Header.Set("accept", "application/json, text/plain, */*")
resp, err := cl.Do(request)
if err != nil {
return
}
defer resp.Body.Close()
return
}