diff --git a/model/gmodel/fs_order_logic.go b/model/gmodel/fs_order_logic.go index 4aebaf0a..fd2ed2c2 100644 --- a/model/gmodel/fs_order_logic.go +++ b/model/gmodel/fs_order_logic.go @@ -115,7 +115,7 @@ type OrderProduct struct { ProductName string `json:"product_name"` // 商品名称 ItemPrice AmountInfo `json:"product_price"` // 商品单价 ProductSnapshot map[string]interface{} `json:"product_snapshot"` // 商品快照 - ShoppingCartSnapshot FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照 + ShoppingCartSnapshot *FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照 DiyInformation UserDiyInformation `json:"diy_information"` FittingInfo FittingInfo `json:"fitting_info"` ProductCover string `json:"product_cover"` // 商品封面 diff --git a/service/repositories/order.go b/service/repositories/order.go index a784764f..2af2b37b 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -280,7 +280,7 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe OriginalCurrency: in.OriginalCurrency, }), ProductSnapshot: productSnapshot, - ShoppingCartSnapshot: shoppingCart.FsShoppingCart, + ShoppingCartSnapshot: &shoppingCart.FsShoppingCart, ProductSn: *shoppingCart.ShoppingCartProduct.Sn, DiyInformation: shoppingCartSnapshot.UserDiyInformation, FittingInfo: shoppingCartSnapshot.FittingInfo,