上传海岛接口优化

This commit is contained in:
liwei1dao 2023-11-21 09:23:42 +08:00
parent 482d16046a
commit fac41f2169

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