diff --git a/webapp/services/callback/OutAppPurchase.php b/webapp/services/callback/OutAppPurchase.php index c2670bbf..afe9ba2a 100644 --- a/webapp/services/callback/OutAppPurchase.php +++ b/webapp/services/callback/OutAppPurchase.php @@ -47,15 +47,15 @@ class OutAppPurchase { return; } $accountId = getReqVal('account_id', ''); + $orderId = getReqVal('order_id', ''); $status = getReqVal('status', ''); $id = getReqVal('id', ''); $txhash = getReqVal('txhash', ''); $sign = getReqVal('sign', ''); - $orderId = getReqVal('order_id', ''); $orderDb = OutAppOrder::find($orderId); if (!$orderDb) { - myself()->_rspErr(2, 'not found order'); + myself()->_rspErr(0, 'not found order'); return; } if ($orderDb['status'] != OutAppOrder::FINISHED_STATE) {