From 5b8e5d41fec27f06d7e787d63c8bfd88ab7aa1b1 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Wed, 8 Nov 2023 18:17:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/gmodel/fs_order_logic.go | 4 ++-- service/repositories/order.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/model/gmodel/fs_order_logic.go b/model/gmodel/fs_order_logic.go index ee862410..33f8e25f 100644 --- a/model/gmodel/fs_order_logic.go +++ b/model/gmodel/fs_order_logic.go @@ -109,7 +109,7 @@ type OrderProduct struct { PurchaseQuantity PurchaseQuantity `json:"purchase_quantity"` // 购买数量 ProductId int64 `json:"product_id"` // 商品ID ProductSn string `json:"product_sn"` // 商品编码 - ProductWebsiteUnit string `json:"product_website_unit"` //产品前台网站单位 + ProductWebsiteUnit *ProductWebsiteUnit `json:"product_website_unit"` //产品前台网站单位 ProductName string `json:"product_name"` // 商品名称 ProductCover string `json:"product_cover"` // 商品封面 ProductCoverMetadata map[string]interface{} `json:"product_cover_metadata"` // 商品封面 @@ -161,7 +161,7 @@ type OrderProductInter struct { ProductCover string `json:"product_cover"` // 商品封面 ProductCoverMetadata map[string]interface{} `json:"product_cover_metadata"` // 商品封面 ProductSn string `json:"product_sn"` // 商品编码 - ProductWebsiteUnit string `json:"product_website_unit"` //产品前台网站单位 + ProductWebsiteUnit *ProductWebsiteUnit `json:"product_website_unit"` //产品前台网站单位 DiyInformation *UserDiyInformation `json:"diy_information"` SizeInfo *OrderProductSizeInfo `json:"size_info"` FittingInfo *OrderProductFittingInfo `json:"fitting_info"` diff --git a/service/repositories/order.go b/service/repositories/order.go index 54fdbe94..54c7e4b6 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -1529,7 +1529,7 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe ProductCoverMetadata: productCoverMetadata, ProductName: shoppingCartSnapshot.ProductInfo.ProductName, ProductSn: shoppingCartSnapshot.ProductInfo.ProductSn, - ProductWebsiteUnit: shoppingCartSnapshot.ProductInfo.ProductWebsiteUnit, + ProductWebsiteUnit: &shoppingCartSnapshot.ProductInfo.ProductWebsiteUnit, DiyInformation: &shoppingCartSnapshot.UserDiyInformation, FittingInfo: &gmodel.OrderProductFittingInfo{