From 953bc69f10180552dd5cfe98fb82902e50687714 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 27 Oct 2022 17:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8B=B1=E9=9B=84=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=8F=91=E6=94=BE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }