店主充值
parent
fdfc786bd7
commit
8454b615f1
|
|
@ -62,8 +62,9 @@ class HandleAlipayResultNotice implements ShouldQueue
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tradeStatus = Arr::get($this->data, 'trade_status', '');
|
||||||
$paystate = PayState::ERROR;
|
$paystate = PayState::ERROR;
|
||||||
if ($aliNotice->trade_status == 'TRADE_SUCCESS') {
|
if ($tradeStatus == 'TRADE_SUCCESS') {
|
||||||
$paystate = PayState::SUCCESS;
|
$paystate = PayState::SUCCESS;
|
||||||
if (!bc_equal($recharge->pay_money, $this->data['receipt_amount'])) {
|
if (!bc_equal($recharge->pay_money, $this->data['receipt_amount'])) {
|
||||||
$paystate = PayState::UNEQUAL;
|
$paystate = PayState::UNEQUAL;
|
||||||
|
|
@ -104,7 +105,7 @@ class HandleAlipayResultNotice implements ShouldQueue
|
||||||
$aliNotice->response = $this->data;
|
$aliNotice->response = $this->data;
|
||||||
$aliNotice->save();
|
$aliNotice->save();
|
||||||
|
|
||||||
if ($recharge->pay_state == PayState::SUCCESS) {
|
if ($paystate == PayState::SUCCESS) {
|
||||||
$recharge = $rechargeObj->where('recharge_sn', $rechargeSn)->first();
|
$recharge = $rechargeObj->where('recharge_sn', $rechargeSn)->first();
|
||||||
SellerWalletService::recharge($recharge);
|
SellerWalletService::recharge($recharge);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue