diff --git a/modules/battle/module.go b/modules/battle/module.go index bba29df14..01ba17d16 100644 --- a/modules/battle/module.go +++ b/modules/battle/module.go @@ -553,7 +553,14 @@ func (this *Battle) CreateStoneBattle(session comm.IUserSession, req *pb.BattleP } return } - + if conf, err = this.configure.GetBattleReady(req.Rulesid); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_ConfigNoFound, + Title: pb.ErrorCode_ConfigNoFound.ToString(), + Message: err.Error(), + } + return + } if record, errdata = this.modelBattle.createpve(session, conn, pb.BattleType_pve, req, conf); errdata != nil { return }