This commit is contained in:
richboo111
2024-01-10 16:07:48 +08:00
parent 8c7b3e2006
commit df03b3f7c9

View File

@@ -467,7 +467,7 @@ func OnWaybillMsg(urlIndex string, msg interface{}) (resp *sfps2.CallbackRespons
func pushCallbackToGy(urlIndex string, msg interface{}) {
var (
err error
client = http.Client{}
client = &http.Client{}
request *http.Request
param = make(map[string]interface{})
)
@@ -498,6 +498,7 @@ func pushCallbackToGy(urlIndex string, msg interface{}) {
return
}
request.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
//request.Header.Set("Content-Type", "application/json; charset=UTF-8")
resp, err := client.Do(request)
resopp, _ := ioutil.ReadAll(resp.Body)
globals.SugarLogger.Debugf("============ %s %v", string(resopp), err)