This commit is contained in:
richboo111
2024-01-10 10:47:42 +08:00
parent 27c2d801c8
commit 695af6a415

View File

@@ -473,11 +473,13 @@ func pushCallbackToGy(urlIndex string, msg interface{}) {
) )
param = changeToRaw(urlIndex, msg) param = changeToRaw(urlIndex, msg)
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)
switch urlIndex { switch urlIndex {
case sfps2.UrlIndexRiderException: case sfps2.UrlIndexRiderException:
request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfAbnormal", strings.NewReader(utils.Map2URLValues(param).Encode())) request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfAbnormal", strings.NewReader(string(b)))
default: default:
request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfOrder", strings.NewReader(utils.Map2URLValues(param).Encode())) request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfOrder", strings.NewReader(string(b)))
} }
globals.SugarLogger.Debugf("pushCallbackToGy request=%s,err=%v", utils.Format4Output(request, false), err) globals.SugarLogger.Debugf("pushCallbackToGy request=%s,err=%v", utils.Format4Output(request, false), err)
if err != nil { if err != nil {