Merge branch 'meixiongfeng' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev

This commit is contained in:
meixiongfeng 2022-09-27 20:41:31 +08:00
commit 0f320cb41b

View File

@ -39,7 +39,13 @@ func (this *apiComp) ResonanceReset(session comm.IUserSession, req *pb.HeroReson
}
// 共鸣次数判断
resonConfig := this.module.configure.GetHeroResonanceConfig(_hero.HeroID, _hero.Star)
//获取原始星级
conf := this.module.configure.GetHero(_hero.HeroID)
if conf == nil {
code = pb.ErrorCode_ConfigNoFound
return
}
resonConfig := this.module.configure.GetHeroResonanceConfig(_hero.HeroID, conf.Star)
if resonConfig == nil {
code = pb.ErrorCode_ConfigNoFound
return