fix:购物车下单
This commit is contained in:
parent
e8958599ac
commit
d59142e017
|
@ -116,11 +116,11 @@ type OrderProduct struct {
|
|||
ItemPrice AmountInfo `json:"product_price"` // 商品单价
|
||||
ProductSnapshot map[string]interface{} `json:"product_snapshot"` // 商品快照
|
||||
ShoppingCartSnapshot *FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照
|
||||
DiyInformation UserDiyInformation `json:"diy_information"`
|
||||
FittingInfo FittingInfo `json:"fitting_info"`
|
||||
DiyInformation *UserDiyInformation `json:"diy_information"`
|
||||
FittingInfo *FittingInfo `json:"fitting_info"`
|
||||
ProductCover string `json:"product_cover"` // 商品封面
|
||||
ProductCoverMetadata map[string]interface{} `json:"product_cover_metadata"` // 商品封面
|
||||
ProductSn string `json:"product_sn"` // 商品编码
|
||||
SizeInfo SizeInfo `json:"size_info"`
|
||||
SizeInfo *SizeInfo `json:"size_info"`
|
||||
StepNum []int `json:"step_num"` // 阶梯数量
|
||||
}
|
||||
|
|
|
@ -282,9 +282,9 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe
|
|||
ProductSnapshot: productSnapshot,
|
||||
ShoppingCartSnapshot: &shoppingCart.FsShoppingCart,
|
||||
ProductSn: *shoppingCart.ShoppingCartProduct.Sn,
|
||||
DiyInformation: shoppingCartSnapshot.UserDiyInformation,
|
||||
FittingInfo: shoppingCartSnapshot.FittingInfo,
|
||||
SizeInfo: shoppingCartSnapshot.SizeInfo,
|
||||
DiyInformation: &shoppingCartSnapshot.UserDiyInformation,
|
||||
FittingInfo: &shoppingCartSnapshot.FittingInfo,
|
||||
SizeInfo: &shoppingCartSnapshot.SizeInfo,
|
||||
StepNum: stepNum,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user