From 18e8b1968a93f92ae4dbc18a5aa8c2e6548e9277 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 29 Nov 2022 19:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=88=E5=AD=90=E7=A7=98?= =?UTF-8?q?=E5=A2=83=E6=88=98=E6=96=97=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/moonfantasy/api_battle.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/moonfantasy/api_battle.go b/modules/moonfantasy/api_battle.go index 730d8e3ad..3d0063837 100644 --- a/modules/moonfantasy/api_battle.go +++ b/modules/moonfantasy/api_battle.go @@ -88,10 +88,10 @@ func (this *apiComp) Battle(session comm.IUserSession, req *pb.MoonfantasyBattle // cd = pb.ErrorCode_MoonfantasyNotEnoughbattles // } // umfantasy.Ticket -= this.module.configure.GetGlobalConf().DreamlandCos - // if boss, err = this.module.configure.GetMonsterById(mdata.Monster); err != nil { - // cd = pb.ErrorCode_ConfigNoFound - // return - // } + if boss, err = this.module.configure.GetMonsterById(mdata.Monster); err != nil { + cd = pb.ErrorCode_ConfigNoFound + return + } if len(mdata.Join) >= int(mdata.Numup) { cd = pb.ErrorCode_MoonfantasyJoinUp