重置数据返回

This commit is contained in:
meixiongfeng 2022-10-25 19:30:50 +08:00
parent 7b225bd4fd
commit 830df642ab

View File

@ -54,6 +54,7 @@ func (this *apiComp) TalentReset(session comm.IUserSession, req *pb.HeroTalentRe
update := make(map[string]interface{}, 0)
szTalent := map[int32]int32{}
update["talent"] = szTalent
_talent.Talent = szTalent
this.module.modelTalent.ChangeHeroTalent(_talent, update)
heroList = this.module.GetHeroList(session.GetUserId())
for _, hero := range heroList {