店主充值

main
jcadmin 2026-01-31 11:23:40 +08:00
parent fdfc786bd7
commit 8454b615f1
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}