- fix bug when getting timestamp

This commit is contained in:
gazebo
2018-09-28 09:47:11 +08:00
parent 72ad9c4731
commit afb52e64f9
4 changed files with 5 additions and 5 deletions

View File

@@ -95,6 +95,6 @@ func (a *API) GetCallbackMsg(request *http.Request) (msg *CallbackMsg, callbackR
return nil, callbackResponse
}
msg.Cmd = request.FormValue("cmd")
msg.Timestamp = utils.MustInterface2Int64(request.FormValue("timestamp"))
msg.Timestamp = utils.Str2Int64(utils.Interface2String(request.FormValue("timestamp")))
return msg, nil
}