上传商店剩余购买测试bug
This commit is contained in:
parent
6bc5e60b7f
commit
79b655cb41
@ -255,20 +255,20 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
sdata.Preview = make(map[int32]*pb.DB_Equipment)
|
// sdata.Preview = make(map[int32]*pb.DB_Equipment)
|
||||||
for i, v := range items {
|
// for i, v := range items {
|
||||||
id := v.Key*100 + int32(i)
|
// id := v.Key*100 + int32(i)
|
||||||
sdata.Items[i] = &pb.UserShopGood{
|
// sdata.Items[i] = &pb.UserShopGood{
|
||||||
Id: id,
|
// Id: id,
|
||||||
Gid: v.Key,
|
// Gid: v.Key,
|
||||||
Buy: 0,
|
// Buy: 0,
|
||||||
}
|
// }
|
||||||
if v.Preview { //是否预览
|
// if v.Preview { //是否预览
|
||||||
if errdata, sdata.Preview[id] = this.module.equip.NewEquipment(session.GetUserId(), v.Iteminfo[0].T); errdata != nil {
|
// if errdata, sdata.Preview[id] = this.module.equip.NewEquipment(session.GetUserId(), v.Iteminfo[0].T); errdata != nil {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
goods = transGoods(items, sdata)
|
goods = transGoods(items, sdata)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user