修复英雄资源发放接口

This commit is contained in:
liwei1dao 2022-10-27 17:28:03 +08:00
parent 4536d51738
commit 953bc69f10

View File

@ -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 { if model, err = this.moduleHero.GetDBNoduleByUid(uid, this.TableName, this.Expired); err != nil {
this.moduleHero.Errorln(err) this.moduleHero.Errorln(err)
} else { } 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) this.moduleHero.Errorf("err:%v", err)
} }
} }
} else { } else {
if err = this.AddLists(uid, hero); err != nil { if err = this.AddList(uid, hero.Id, hero); err != nil {
this.moduleHero.Errorln(err) this.moduleHero.Errorln(err)
} }
} }