This commit is contained in:
meixiongfeng 2023-11-21 10:04:53 +08:00
commit e800f618c6

View File

@ -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