From 02dc79cf2756a242e2ecd4f88b804c4d0f59cb26 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 2 Aug 2023 17:20:42 +0800 Subject: [PATCH] 1 --- webapp/services/callback/OutAppPurchase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {