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

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

View File

@ -208,6 +208,7 @@ func (o *OrderNotify) checkApp() {
}
func (o *OrderNotify) checkOrder() {
utils.Log(nil, "检查订单状态:%d", o.order.Id)
cond := builder.NewCond()
cond = cond.And(builder.Eq{"id": o.OrderId})
o.order, o.Code = services.OrderFindOne(&ordersmodel.Orders{}, cond)

View File

@ -4,6 +4,7 @@ import (
"PaymentCenter/app/console"
"PaymentCenter/app/http/routes"
"PaymentCenter/app/jobs"
"PaymentCenter/app/utils"
"PaymentCenter/bootstrap"
"PaymentCenter/config"
_ "PaymentCenter/docs"
@ -66,7 +67,7 @@ func main() {
fmt.Printf("%s\ncommit %s\nbuilt on %s\n", server.Version, server.BuildCommit, server.BuildDate)
os.Exit(0)
}
utils.Log(nil, "正在启动服务...")
handleCmd(opts)
err := startServer(opts)