diff --git a/modules/hero/module.go b/modules/hero/module.go index ae4725445..83683f0dc 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -81,12 +81,10 @@ func (this *Hero) UpdateEquipment(hero *pb.DBHero, equip []*pb.DB_Equipment) (co //่‹ฑ้›„ๅˆ—่กจ func (this *Hero) GetHeroList(uid string) []*pb.DBHero { - // data := []*pb.DBHero{} heroes := this.modelHero.getHeroList(uid) - // for _, h := range heroes { - // h.Property = this.modelHero.PropertyCompute(uid, h.Id) - // data = append(data, h) - // } + for _, h := range heroes { + h.Property = this.modelHero.PropertyCompute(uid, h.Id) + } return heroes }