diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 97d28b907..b36cdbff2 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -573,6 +573,8 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex code = pb.ErrorCode_DBError } if curLv-preLv > 0 { // 升级了 统计任务 + this.ChangeHeroProperty(session, hero) // 重新计算属性值 + // 推送 this.moduleHero.ModuleRtask.SendToRtask(session, comm.Rtype4, utils.ToInt32(hero.HeroID), hero.Lv) this.moduleHero.ModuleRtask.SendToRtask(session, comm.Rtype23, 1, hero.Star, hero.Lv) this.moduleHero.ModuleRtask.SendToRtask(session, comm.Rtype24, 1) diff --git a/modules/hero/module.go b/modules/hero/module.go index d0f25d27f..8b5d0ffa6 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -313,7 +313,7 @@ func (this *Hero) AddHeroExp(session comm.IUserSession, heroObjID string, exp in if code != pb.ErrorCode_Success { return } - //this.Debug("AddHeroExp", log.Field{Key: "hero", Value: _hero}) + newhero, code = this.modelHero.AddCardExp(session, _hero, exp) if code != pb.ErrorCode_Success { return