fix: antomReq.OutTradeNo = uuidV4.String()

This commit is contained in:
周俊耀 2026-02-04 10:21:41 +08:00
parent 5a89ad139f
commit 573ad1b147

View File

@ -15,6 +15,7 @@ import (
"fonchain-fiee/pkg/service"
"fonchain-fiee/pkg/service/bundle/common"
bundleModel "fonchain-fiee/pkg/service/bundle/model"
uuid "github.com/satori/go.uuid"
"io"
"math"
"net/http"
@ -448,7 +449,14 @@ func CreateAntomPay(c *gin.Context) {
antomReq.Domain = "fiee"
antomReq.Amount = req.ProductAllPrice
antomReq.Currency = req.ProductPriceCurrency
antomReq.OutTradeNo = req.OutTradeNo
//antomReq.OutTradeNo = req.OutTradeNo
uuidV4, err := uuid.NewV4()
if err != nil {
fmt.Println("生成错误", err)
service.Error(c, errors.New("订单编号生成失败"))
return
}
antomReq.OutTradeNo = uuidV4.String()
antomReq.ReturnUrl = req.SuccessUrl
//调用微服务获取支付地址