- cmd + resp.
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user