Merge branch 'feature/mhw-v1.01' of gitee.com:fusenpack/fusenapi into feature/mhw-v1.01

This commit is contained in:
laodaming 2023-09-20 15:39:18 +08:00
commit 0df2ccdf1d
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ type OrderProduct struct {
ProductName string `json:"product_name"` // 商品名称 ProductName string `json:"product_name"` // 商品名称
ItemPrice AmountInfo `json:"product_price"` // 商品单价 ItemPrice AmountInfo `json:"product_price"` // 商品单价
ProductSnapshot map[string]interface{} `json:"product_snapshot"` // 商品快照 ProductSnapshot map[string]interface{} `json:"product_snapshot"` // 商品快照
ShoppingCartSnapshot FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照 ShoppingCartSnapshot *FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照
DiyInformation UserDiyInformation `json:"diy_information"` DiyInformation UserDiyInformation `json:"diy_information"`
FittingInfo FittingInfo `json:"fitting_info"` FittingInfo FittingInfo `json:"fitting_info"`
ProductCover string `json:"product_cover"` // 商品封面 ProductCover string `json:"product_cover"` // 商品封面

View File

@ -280,7 +280,7 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe
OriginalCurrency: in.OriginalCurrency, OriginalCurrency: in.OriginalCurrency,
}), }),
ProductSnapshot: productSnapshot, ProductSnapshot: productSnapshot,
ShoppingCartSnapshot: shoppingCart.FsShoppingCart, ShoppingCartSnapshot: &shoppingCart.FsShoppingCart,
ProductSn: *shoppingCart.ShoppingCartProduct.Sn, ProductSn: *shoppingCart.ShoppingCartProduct.Sn,
DiyInformation: shoppingCartSnapshot.UserDiyInformation, DiyInformation: shoppingCartSnapshot.UserDiyInformation,
FittingInfo: shoppingCartSnapshot.FittingInfo, FittingInfo: shoppingCartSnapshot.FittingInfo,