From b25d0223a91adebea75221742dac3f18abe2a7a3 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 15 Dec 2022 18:34:03 +0800 Subject: [PATCH] =?UTF-8?q?gm=20=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/gm/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/gm/module.go b/modules/gm/module.go index ccfd6c859..36662a9ab 100644 --- a/modules/gm/module.go +++ b/modules/gm/module.go @@ -207,6 +207,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC } module1.(comm.IMoonFantasy).TriggerMF(session, datas[1]) + code = pb.ErrorCode_Success this.Debug("使用bingo命令", log.Fields{"uid": session.GetUserId(), "0": datas[1]}) } else if len(datas) == 2 && (datas[0] == "arena") { // 设置竞技场用户积分 module1, err := this.service.GetModule(comm.ModuleArena) @@ -219,6 +220,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC return } module1.(comm.IArena).SetUserIntegral(session, int32(num)) + code = pb.ErrorCode_Success this.Debug("使用bingo命令", log.Fields{"uid": session.GetUserId(), "0": datas[1]}) } else if len(datas) == 2 && (datas[0] == "sociatyexp") { // 设置工会经验 module1, err := this.service.GetModule(comm.ModuleSociaty) @@ -231,6 +233,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC return } module1.(comm.ISociaty).BingoSetExp(session, int32(num)) + code = pb.ErrorCode_Success this.Debug("使用bingo命令", log.Fields{"uid": session.GetUserId(), "0": datas[1]}) } else if len(datas) == 2 && (datas[0] == "sociatyactivity") { // 设置工会活跃度 module1, err := this.service.GetModule(comm.ModuleSociaty) @@ -243,6 +246,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC return } module1.(comm.ISociaty).BingoSetActivity(session, int32(num)) + code = pb.ErrorCode_Success this.Debug("使用bingo命令", log.Fields{"uid": session.GetUserId(), "0": datas[1]}) } else if len(datas) == 1 && (datas[0] == "alltask") { // 完成所有世界任务 module, err := this.service.GetModule(comm.ModuleWorldtask)