This commit is contained in:
laodaming 2023-09-18 14:27:55 +08:00
parent 5e2760849c
commit 43f3942508

View File

@ -4,6 +4,7 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt"
"fusenapi/model/gmodel" "fusenapi/model/gmodel"
"fusenapi/utils/basic" "fusenapi/utils/basic"
"fusenapi/utils/shopping_cart" "fusenapi/utils/shopping_cart"
@ -157,7 +158,7 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe
// 商品总价 // 商品总价
productTotalPrice := productPrice * *shoppingCart.PurchaseQuantity productTotalPrice := productPrice * *shoppingCart.PurchaseQuantity
fmt.Println(productTotalPrice)
// 存储订单商品 // 存储订单商品
orderProductList = append(orderProductList, &gmodel.OrderProduct{}) orderProductList = append(orderProductList, &gmodel.OrderProduct{})
} }