diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 4d5795ce4..b74a9ef83 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -137,12 +137,12 @@ func (this *ModelHero) initHeroOverlying(uid string, heroCfgId string, count int if model, err = this.moduleHero.GetDBNoduleByUid(uid, this.TableName, this.Expired); err != nil { this.moduleHero.Errorln(err) } else { - if err = model.AddLists(uid, hero); err != nil { + if err = model.AddList(uid, hero.Id, hero); err != nil { this.moduleHero.Errorf("err:%v", err) } } } else { - if err = this.AddLists(uid, hero); err != nil { + if err = this.AddList(uid, hero.Id, hero); err != nil { this.moduleHero.Errorln(err) } }