This commit is contained in:
richboo111
2024-01-10 14:10:22 +08:00
parent 6cd7d3aa8b
commit 141fd41e2b

View File

@@ -477,12 +477,14 @@ func pushCallbackToGy(urlIndex string, msg interface{}) {
globals.SugarLogger.Debugf("sfsfsf pushCallbackToGy param=%s", utils.Format4Output(param, false)) globals.SugarLogger.Debugf("sfsfsf pushCallbackToGy param=%s", utils.Format4Output(param, false))
b, _ := json.Marshal(param) b, _ := json.Marshal(param)
sign := api.SfPsAPI.SignParam(b)
switch urlIndex { switch urlIndex {
case sfps2.UrlIndexRiderException: case sfps2.UrlIndexRiderException:
request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfAbnormal", bufio.NewReader(strings.NewReader(utils.Map2URLValues(param).Encode()))) request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfAbnormal", bufio.NewReader(strings.NewReader(utils.Map2URLValues(param).Encode())))
default: 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数据 //检测request数据