fix:购物车下单

This commit is contained in:
momo
2023-09-20 15:35:40 +08:00
parent 143421557f
commit 359e67e281
3 changed files with 10 additions and 54 deletions

View File

@@ -280,24 +280,12 @@ 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: &gmodel.DiyInformation{
Address: shoppingCartSnapshot.UserDiyInformation.Address,
Phone: shoppingCartSnapshot.UserDiyInformation.Phone,
Qrcode: shoppingCartSnapshot.UserDiyInformation.Qrcode,
Slogan: shoppingCartSnapshot.UserDiyInformation.Slogan,
Website: shoppingCartSnapshot.UserDiyInformation.Website,
},
FittingInfo: &gmodel.FittingInfo{
FittingID: *shoppingCart.FittingId,
FittingName: shoppingCartSnapshot.FittingInfo.FittingName,
},
SizeInfo: &gmodel.SizeInfo{
SizeID: *shoppingCart.SizeId,
Capacity: shoppingCartSnapshot.SizeInfo.Capacity,
},
StepNum: stepNum,
DiyInformation: shoppingCartSnapshot.UserDiyInformation,
FittingInfo: shoppingCartSnapshot.FittingInfo,
SizeInfo: shoppingCartSnapshot.SizeInfo,
StepNum: stepNum,
})
}