GM 指令

This commit is contained in:
meixiongfeng 2023-04-03 11:20:19 +08:00
parent 79c1134386
commit 061f4011d2

View File

@ -61,7 +61,7 @@ func (this *GM) OnInstallComp() {
//bingo:Iamyoudad //bingo:Iamyoudad
func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorCode) { func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorCode) {
code = pb.ErrorCode_ReqParameterError
cmd = strings.Replace(cmd, " ", "", -1) // 去空格 cmd = strings.Replace(cmd, " ", "", -1) // 去空格
keys := strings.Split(cmd, ":") keys := strings.Split(cmd, ":")
if len(keys) == 2 { if len(keys) == 2 {