From c1b506f25e3efdb8a8b8f8e8b3e26e12d4a8bde0 Mon Sep 17 00:00:00 2001 From: zhaocy Date: Tue, 12 Jul 2022 10:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=AD=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/module.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 }