<feat>修复支付宝网页支付关闭订单问题

已关闭订单收到支付成功回调加入异常订单
This commit is contained in:
renzhiyuan 2026-07-28 16:16:28 +08:00
parent 8c2c4bfc20
commit 1ae0da11e9
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import (
"PaymentCenter/app/services" "PaymentCenter/app/services"
"PaymentCenter/app/utils" "PaymentCenter/app/utils"
"PaymentCenter/app/utils/httpclient" "PaymentCenter/app/utils/httpclient"
"fmt"
"time" "time"
"github.com/bytedance/sonic" "github.com/bytedance/sonic"
@ -227,7 +228,7 @@ func (o *OrderNotify) checkOrder() {
OrderId: o.order.Id, OrderId: o.order.Id,
OutTradeNo: o.order.OutTradeNo, OutTradeNo: o.order.OutTradeNo,
ExceptionType: data.OrderStatusOverButPaySuccess.ToInt(), ExceptionType: data.OrderStatusOverButPaySuccess.ToInt(),
ExceptionDesc: data.OrderStatusOverButPaySuccess.GetDesc(), ExceptionDesc: fmt.Sprintf("%s:%s:%d", data.OrderStatusOverButPaySuccess.GetDesc(), "当前状态为", o.order.Status),
CreateTime: time.Now(), CreateTime: time.Now(),
Status: o.order.Status, Status: o.order.Status,
}) })