From 8454b615f1c81e07e1adabec2dc92b40f26fa693 Mon Sep 17 00:00:00 2001 From: jcadmin Date: Sat, 31 Jan 2026 11:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E4=B8=BB=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/HandleAlipayResultNotice.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Jobs/HandleAlipayResultNotice.php b/app/Jobs/HandleAlipayResultNotice.php index 2ee61552..60b41c46 100755 --- a/app/Jobs/HandleAlipayResultNotice.php +++ b/app/Jobs/HandleAlipayResultNotice.php @@ -62,8 +62,9 @@ class HandleAlipayResultNotice implements ShouldQueue return; } + $tradeStatus = Arr::get($this->data, 'trade_status', ''); $paystate = PayState::ERROR; - if ($aliNotice->trade_status == 'TRADE_SUCCESS') { + if ($tradeStatus == 'TRADE_SUCCESS') { $paystate = PayState::SUCCESS; if (!bc_equal($recharge->pay_money, $this->data['receipt_amount'])) { $paystate = PayState::UNEQUAL; @@ -104,7 +105,7 @@ class HandleAlipayResultNotice implements ShouldQueue $aliNotice->response = $this->data; $aliNotice->save(); - if ($recharge->pay_state == PayState::SUCCESS) { + if ($paystate == PayState::SUCCESS) { $recharge = $rechargeObj->where('recharge_sn', $rechargeSn)->first(); SellerWalletService::recharge($recharge); }