diff --git a/platformapi/ebaiapi/callback.go b/platformapi/ebaiapi/callback.go index 5892239a..1597affe 100644 --- a/platformapi/ebaiapi/callback.go +++ b/platformapi/ebaiapi/callback.go @@ -29,7 +29,7 @@ type CallbackMsg struct { func (a *API) Err2CallbackResponse(cmd string, err error, data interface{}) *CallbackResponse { response := &CallbackResponse{ - Cmd: cmd, + Cmd: "resp." + cmd, Source: a.source, Ticket: utils.GetUpperUUID(), Timestamp: utils.GetCurTimestamp(), @@ -49,7 +49,7 @@ func (a *API) Err2CallbackResponse(cmd string, err error, data interface{}) *Cal } } params := url.Values{ - "cmd": []string{"resp." + cmd}, + "cmd": []string{response.Cmd}, "version": []string{utils.Int2Str(response.Version)}, "timestamp": []string{utils.Int64ToStr(response.Timestamp)}, "ticket": []string{response.Ticket},