觉醒成功 修改技能保存玩家技能数据
This commit is contained in:
parent
491b7a271e
commit
05c317072f
@ -117,7 +117,15 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (c
|
||||
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 { // 加属性
|
||||
property := make(map[string]int32, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user