From 603d76c3f496532e7754093986004520e1076788 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 10 Jan 2024 14:38:35 +0800 Subject: [PATCH] 1 --- business/partner/delivery/sfps/waybill.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/business/partner/delivery/sfps/waybill.go b/business/partner/delivery/sfps/waybill.go index 2e4f611d5..2d62ca6cc 100644 --- a/business/partner/delivery/sfps/waybill.go +++ b/business/partner/delivery/sfps/waybill.go @@ -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数据