1
This commit is contained in:
@@ -475,16 +475,16 @@ 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, err := json.Marshal(param)
|
//b, err := json.Marshal(param)
|
||||||
|
//
|
||||||
if err != nil {
|
//if err != nil {
|
||||||
globals.SugarLogger.Debugf("pushCallbackToGy marshal err=%v", err)
|
// globals.SugarLogger.Debugf("pushCallbackToGy marshal err=%v", err)
|
||||||
}
|
//}
|
||||||
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(string(b))))
|
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", bufio.NewReader(strings.NewReader(string(b))))
|
request, err = http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/SFPS/SfOrder", strings.NewReader(utils.Map2URLValues(param).Encode()))
|
||||||
}
|
}
|
||||||
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user