fix: 调整创建订单的uuid

This commit is contained in:
周俊耀 2026-02-04 13:08:30 +08:00
parent 54b15344e0
commit 48aa714706

View File

@ -499,7 +499,7 @@ func CreateAntomPay(c *gin.Context) {
CurrencyType: int32(currencyType), CurrencyType: int32(currencyType),
PayStatus: 1, PayStatus: 1,
UserID: userInfo.ID, UserID: userInfo.ID,
SerialNumber: result.CheckoutSessionId, SerialNumber: req.OutTradeNo,
}) })
if err != nil { if err != nil {
fmt.Println("=============== antom创建支付创建对账单报错", err) fmt.Println("=============== antom创建支付创建对账单报错", err)
@ -622,9 +622,9 @@ func AntomWebhook(c *gin.Context) {
} }
// 更新对账单 // 更新对账单
_, err = service.BundleProvider.UpdateReconciliationStatusBySerialNumber(context.Background(), &bundle.UpdateStatusAndPayTimeBySerialNumber{ _, err = service.BundleProvider.UpdateReconciliationStatusBySerialNumber(context.Background(), &bundle.UpdateStatusAndPayTimeBySerialNumber{
PayTime: paymentTime, PayTime: common.GetBeijingTime(),
PaymentStatus: 2, PaymentStatus: 2,
SerialNumber: requestId, SerialNumber: resp.OutTradeNo,
}) })
if err != nil { if err != nil {
fmt.Println("=============== antom回调更新对账单报错", err) fmt.Println("=============== antom回调更新对账单报错", err)