上传商店剩余购买测试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
|
||||
}
|
||||
sdata.Preview = make(map[int32]*pb.DB_Equipment)
|
||||
for i, v := range items {
|
||||
id := v.Key*100 + int32(i)
|
||||
sdata.Items[i] = &pb.UserShopGood{
|
||||
Id: id,
|
||||
Gid: v.Key,
|
||||
Buy: 0,
|
||||
}
|
||||
if v.Preview { //是否预览
|
||||
if errdata, sdata.Preview[id] = this.module.equip.NewEquipment(session.GetUserId(), v.Iteminfo[0].T); errdata != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
// sdata.Preview = make(map[int32]*pb.DB_Equipment)
|
||||
// for i, v := range items {
|
||||
// id := v.Key*100 + int32(i)
|
||||
// sdata.Items[i] = &pb.UserShopGood{
|
||||
// Id: id,
|
||||
// Gid: v.Key,
|
||||
// Buy: 0,
|
||||
// }
|
||||
// if v.Preview { //是否预览
|
||||
// if errdata, sdata.Preview[id] = this.module.equip.NewEquipment(session.GetUserId(), v.Iteminfo[0].T); errdata != nil {
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
goods = transGoods(items, sdata)
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user