From 72ad9c47310b251377b24bb2bd449cd3942981e6 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 27 Sep 2018 21:12:37 +0800 Subject: [PATCH] - cmd + resp. --- platformapi/ebaiapi/callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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},