From 2ba1225ba8e0a57177e8f370d91886c0196d10be Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 2 Aug 2023 17:26:58 +0800 Subject: [PATCH] 1 --- webapp/services/callback/OutAppPurchase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/services/callback/OutAppPurchase.php b/webapp/services/callback/OutAppPurchase.php index 0226e6fb..07f185f1 100644 --- a/webapp/services/callback/OutAppPurchase.php +++ b/webapp/services/callback/OutAppPurchase.php @@ -62,6 +62,11 @@ class OutAppPurchase { myself()->_rspErr(0, 'order is finished'); return; } + if ($status != 9) { + OutAppOrder::markFailed($orderDb['order_id']); + myself()->_rspErr(0, 'order is failed'); + return; + } OutAppOrder::markFinished($orderDb['order_id']); $orderDb = OutAppOrder::find($orderId); if (!$orderDb) {