1
This commit is contained in:
@@ -398,8 +398,6 @@ func OnWaybillMsg(urlIndex string, msg interface{}) (resp *sfps2.CallbackRespons
|
||||
}
|
||||
}
|
||||
//获取实时订单信息
|
||||
var temp = api.SfPsAPI
|
||||
globals.SugarLogger.Debugf("sfsfsf sfApi=%s", utils.Format4Output(temp, false))
|
||||
|
||||
sfOrder, err := api.SfPsAPI.GetOrderStatus(order.VendorWaybillID)
|
||||
if err != nil {
|
||||
@@ -477,14 +475,15 @@ func pushCallbackToGy(urlIndex string, msg interface{}) {
|
||||
globals.SugarLogger.Debugf("sfsfsf pushCallbackToGy param=%s", utils.Format4Output(param, false))
|
||||
|
||||
b, _ := json.Marshal(param)
|
||||
sign := api.SfPsAPI.SignParam(b)
|
||||
//sign := api.SfPsAPI.SignParam(b)
|
||||
|
||||
switch urlIndex {
|
||||
case sfps2.UrlIndexRiderException:
|
||||
request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfAbnormal", bufio.NewReader(strings.NewReader(utils.Map2URLValues(param).Encode())))
|
||||
default:
|
||||
fullUrl := utils.GenerateGetURL("http://callback-jxgy.jxc4.com/SFPS/SfOrder", "", map[string]interface{}{"sign": sign})
|
||||
request, err = http.NewRequest(http.MethodPost, fullUrl, strings.NewReader(string(b)))
|
||||
//fullUrl := utils.GenerateGetURL("http://callback-jxgy.jxc4.com/SFPS/SfOrder", "", map[string]interface{}{"sign": sign})
|
||||
//request, err = http.NewRequest(http.MethodPost, fullUrl, strings.NewReader(string(b)))
|
||||
request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfOrder", strings.NewReader(string(b)))
|
||||
}
|
||||
|
||||
//检测request数据
|
||||
|
||||
Reference in New Issue
Block a user