配置校验

This commit is contained in:
meixiongfeng 2023-12-18 18:05:32 +08:00
parent 948ce3b409
commit a58a7ddb0c

View File

@ -449,9 +449,11 @@ func (this *configureComp) GetHeroMaxLv(star int32) int32 {
if v, err := this.GetConfigure(hero_stargrow); err == nil {
if configure, ok := v.(*cfg.GameHeroStargrow); ok {
if configure.Get(star) != nil {
return configure.Get(star).Maxlevel
}
}
}
this.module.Errorf(" GetHeroMaxLv err : star:%d", star)
return 1