|
@@ -106,7 +106,7 @@ func CreateProductOrder(templateUser user.User, productId int, orderNo string) (
|
|
|
ProductID: productId,
|
|
|
ProductType: productInfo.Type,
|
|
|
ProductName: productInfo.ProductTile,
|
|
|
- TotalAmount: productInfo.Price.String(),
|
|
|
+ TotalAmount: productInfo.Price,
|
|
|
})
|
|
|
if err != nil {
|
|
|
logger.Error("创建订单失败:%v", err)
|
|
@@ -133,7 +133,7 @@ func CreateProductOrder(templateUser user.User, productId int, orderNo string) (
|
|
|
product := ProductInfo{
|
|
|
Name: productInfo.Title,
|
|
|
Type: productInfo.Type,
|
|
|
- Price: productInfo.Price.String(),
|
|
|
+ Price: productInfo.Price,
|
|
|
ValidDuration: duration,
|
|
|
}
|
|
|
orderInfo = ProductOrderInfo{
|
|
@@ -182,7 +182,7 @@ func PreViewProductOrder(templateUser user.User, productId int) (orderInfo Produ
|
|
|
product := ProductInfo{
|
|
|
Name: productInfo.Title,
|
|
|
Type: productInfo.Type,
|
|
|
- Price: productInfo.Price.String(),
|
|
|
+ Price: productInfo.Price,
|
|
|
ValidDuration: duration,
|
|
|
}
|
|
|
orderInfo = ProductOrderInfo{
|