修复支付宝支付
This commit is contained in:
@@ -260,8 +260,17 @@ func (c *BackendProductPurchaseController) GetOrderStatus() {
|
||||
Filter("tid", uint64(claims.TenantId)).
|
||||
Filter("delete_time__isnull", true).
|
||||
One(&order); err != nil {
|
||||
c.jsonErr(404, 404, "订单不存在")
|
||||
return
|
||||
// 支付宝同步回跳地址携带的 out_trade_no 是支付单号(pay_no),此处兜底按支付单号查询,
|
||||
// 保证「支付完成自动跳回」的场景也能直接触发状态同步与自动开通。
|
||||
if err2 := models.Orm.QueryTable(new(models.PlatformProductOrder)).
|
||||
Filter("pay_no", orderNo).
|
||||
Filter("tid", uint64(claims.TenantId)).
|
||||
Filter("delete_time__isnull", true).
|
||||
OrderBy("-id").
|
||||
One(&order); err2 != nil {
|
||||
c.jsonErr(404, 404, "订单不存在")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// 在线支付:同步渠道状态,支付成功后自动开通
|
||||
|
||||
Reference in New Issue
Block a user