1
This commit is contained in:
@@ -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数据
|
||||
|
||||
Reference in New Issue
Block a user