fmt注释删除
This commit is contained in:
parent
3f9788da42
commit
027bc7b33d
@ -50,16 +50,12 @@ func CreateStripeCheckoutSession(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("1111111111111111111111")
|
||||
|
||||
//金额校验
|
||||
if detail.OrderRecord.TotalAmount*100 != float32(req.ProductAllPrice) {
|
||||
service.Error(c, errors.New(common.InvalidOrderAmount))
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("22222222222222222222222")
|
||||
|
||||
// 如果 当前订单 是 已签未支付 且 存在 checkoutSessionId 需要 查询 支付结果
|
||||
if detail.OrderRecord.Status == bundleModel.OrderSigned && detail.OrderRecord.CheckoutSessionId != "" && detail.OrderRecord.PayTime == "" {
|
||||
// 查询支付结果
|
||||
@ -95,8 +91,6 @@ func CreateStripeCheckoutSession(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("333333333333333333333")
|
||||
|
||||
//调用微服务获取支付地址
|
||||
result, err := service.OrderProvider.CreateStripeCheckoutSession(context.Background(), &req)
|
||||
if err != nil {
|
||||
@ -104,8 +98,6 @@ func CreateStripeCheckoutSession(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("444444444444444444444")
|
||||
|
||||
//更新订单状态
|
||||
_, updateOrderRecordErr := service.BundleProvider.UpdateOrderRecord(context.Background(), &bundle.OrderRecord{
|
||||
Uuid: detail.OrderRecord.Uuid,
|
||||
|
Loading…
Reference in New Issue
Block a user