觉醒成功 修改技能保存玩家技能数据

This commit is contained in:
meixiongfeng 2022-07-04 11:33:13 +08:00
parent 491b7a271e
commit 05c317072f

View File

@ -117,7 +117,15 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (c
v.SkillID = int32(_value) v.SkillID = int32(_value)
} }
} }
}
_heroMap := map[string]interface{}{
"normalSkill": _hero.NormalSkill,
}
// 保存数据
err1 = this.module.modelHero.modifyHeroData(session.GetUserId(), _hero.Id, _heroMap)
if err1 != nil {
code = pb.ErrorCode_DBError
log.Errorf("update hero skill failed:%v", err1)
} }
} else { // 加属性 } else { // 加属性
property := make(map[string]int32, 0) property := make(map[string]int32, 0)