From fac41f216975585eb5b89f411399bf5c7e55e3b1 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 21 Nov 2023 09:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=B5=B7=E5=B2=9B=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/island/modelhero.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/island/modelhero.go b/modules/island/modelhero.go index 4a96b00de..46c4e50c6 100644 --- a/modules/island/modelhero.go +++ b/modules/island/modelhero.go @@ -43,8 +43,8 @@ func (this *modelHeroComp) getHeros(uid string, ids []string) (heros []*pb.DBHer } //添加英雄 -func (this *modelHeroComp) addheros(uid string, heros *pb.DBHero) (err error) { - if err = this.AddLists(uid, heros); err != nil { +func (this *modelHeroComp) addheros(uid string, hero *pb.DBHero) (err error) { + if err = this.AddList(uid, hero.Id, hero); err != nil { this.module.Errorln(err) } return