fix: antomReq.OutTradeNo = uuidV4.String()
This commit is contained in:
parent
5a89ad139f
commit
573ad1b147
@ -15,6 +15,7 @@ import (
|
|||||||
"fonchain-fiee/pkg/service"
|
"fonchain-fiee/pkg/service"
|
||||||
"fonchain-fiee/pkg/service/bundle/common"
|
"fonchain-fiee/pkg/service/bundle/common"
|
||||||
bundleModel "fonchain-fiee/pkg/service/bundle/model"
|
bundleModel "fonchain-fiee/pkg/service/bundle/model"
|
||||||
|
uuid "github.com/satori/go.uuid"
|
||||||
"io"
|
"io"
|
||||||
"math"
|
"math"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -448,7 +449,14 @@ func CreateAntomPay(c *gin.Context) {
|
|||||||
antomReq.Domain = "fiee"
|
antomReq.Domain = "fiee"
|
||||||
antomReq.Amount = req.ProductAllPrice
|
antomReq.Amount = req.ProductAllPrice
|
||||||
antomReq.Currency = req.ProductPriceCurrency
|
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
|
antomReq.ReturnUrl = req.SuccessUrl
|
||||||
|
|
||||||
//调用微服务获取支付地址
|
//调用微服务获取支付地址
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user