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)