This commit is contained in:
laodaming
2023-09-18 12:31:51 +08:00
parent b07473478b
commit 1a7ce5013e
6 changed files with 90 additions and 16 deletions

View File

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