- cmd + resp.

This commit is contained in:
gazebo
2018-09-27 21:12:37 +08:00
parent 8b2b29d69d
commit 72ad9c4731

View File

@@ -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},