From 141fd41e2b59e3ae91f45b6eb3254a0496afcd44 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 10 Jan 2024 14:10:22 +0800 Subject: [PATCH] 1 --- business/partner/delivery/sfps/waybill.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/partner/delivery/sfps/waybill.go b/business/partner/delivery/sfps/waybill.go index 09e3b522b..2e4f611d5 100644 --- a/business/partner/delivery/sfps/waybill.go +++ b/business/partner/delivery/sfps/waybill.go @@ -477,12 +477,14 @@ 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) 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: - request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfOrder", 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数据