- 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 {
|
func (a *API) Err2CallbackResponse(cmd string, err error, data interface{}) *CallbackResponse {
|
||||||
response := &CallbackResponse{
|
response := &CallbackResponse{
|
||||||
Cmd: cmd,
|
Cmd: "resp." + cmd,
|
||||||
Source: a.source,
|
Source: a.source,
|
||||||
Ticket: utils.GetUpperUUID(),
|
Ticket: utils.GetUpperUUID(),
|
||||||
Timestamp: utils.GetCurTimestamp(),
|
Timestamp: utils.GetCurTimestamp(),
|
||||||
@@ -49,7 +49,7 @@ func (a *API) Err2CallbackResponse(cmd string, err error, data interface{}) *Cal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
params := url.Values{
|
params := url.Values{
|
||||||
"cmd": []string{"resp." + cmd},
|
"cmd": []string{response.Cmd},
|
||||||
"version": []string{utils.Int2Str(response.Version)},
|
"version": []string{utils.Int2Str(response.Version)},
|
||||||
"timestamp": []string{utils.Int64ToStr(response.Timestamp)},
|
"timestamp": []string{utils.Int64ToStr(response.Timestamp)},
|
||||||
"ticket": []string{response.Ticket},
|
"ticket": []string{response.Ticket},
|
||||||
|
|||||||
Reference in New Issue
Block a user