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{}) {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user