1
This commit is contained in:
@@ -467,7 +467,7 @@ func OnWaybillMsg(urlIndex string, msg interface{}) (resp *sfps2.CallbackRespons
|
|||||||
func pushCallbackToGy(urlIndex string, msg interface{}) {
|
func pushCallbackToGy(urlIndex string, msg interface{}) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
client = http.Client{}
|
client = &http.Client{}
|
||||||
request *http.Request
|
request *http.Request
|
||||||
param = make(map[string]interface{})
|
param = make(map[string]interface{})
|
||||||
)
|
)
|
||||||
@@ -498,6 +498,7 @@ func pushCallbackToGy(urlIndex string, msg interface{}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
request.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
|
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)
|
resp, err := client.Do(request)
|
||||||
resopp, _ := ioutil.ReadAll(resp.Body)
|
resopp, _ := ioutil.ReadAll(resp.Body)
|
||||||
globals.SugarLogger.Debugf("============ %s %v", string(resopp), err)
|
globals.SugarLogger.Debugf("============ %s %v", string(resopp), err)
|
||||||
|
|||||||
Reference in New Issue
Block a user