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