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) {