- fix mtwm cmd

This commit is contained in:
gazebo
2018-11-30 15:41:48 +08:00
parent b7230df0b8
commit 3e52f0b31f

View File

@@ -57,6 +57,7 @@ func (a *API) GetCallbackMsg(request *http.Request) (msg *CallbackMsg, callbackR
return nil, SignatureIsNotOk
}
cmd := strings.Trim(request.URL.EscapedPath(), "/")
cmd = cmd[strings.LastIndex(cmd, "/")+1:]
msg = &CallbackMsg{
Cmd: cmd,
Data: request.PostForm,