diff --git a/modules/gm/module.go b/modules/gm/module.go index d10a9351e..28b301e72 100644 --- a/modules/gm/module.go +++ b/modules/gm/module.go @@ -61,7 +61,7 @@ func (this *GM) OnInstallComp() { //bingo:Iamyoudad func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorCode) { - code = pb.ErrorCode_ReqParameterError + cmd = strings.Replace(cmd, " ", "", -1) // 去空格 keys := strings.Split(cmd, ":") if len(keys) == 2 {