代付交易超时,重新支付
parent
602d6f30aa
commit
078a52f206
|
|
@ -50,8 +50,14 @@ class WalletToBankCommand extends Command
|
||||||
'amount' => bcdiv($log->account_amount, 100, 2),
|
'amount' => bcdiv($log->account_amount, 100, 2),
|
||||||
'feeRole' => 'PAYER',
|
'feeRole' => 'PAYER',
|
||||||
'tradeMemo' => '商城余额提现',
|
'tradeMemo' => '商城余额提现',
|
||||||
|
'context' => json_encode(['type' => 'wallet_to_bank']),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// 如果交易超时,重新发起支付
|
||||||
|
if ($result['resultCode'] === 'TIME_OUT') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($result['orderStatus'] === 'SUCCESS') {
|
if ($result['orderStatus'] === 'SUCCESS') {
|
||||||
$log->update([
|
$log->update([
|
||||||
'status' => WalletToBankLogStatus::Success,
|
'status' => WalletToBankLogStatus::Success,
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class YeePayService
|
||||||
|
|
||||||
$result = $response->json();
|
$result = $response->json();
|
||||||
|
|
||||||
if ($result['success'] && in_array($result['resultCode'], ['EXECUTE_SUCCESS', 'EXECUTE_PROCESSING'])) {
|
if ($result['success'] && in_array($result['resultCode'], ['EXECUTE_SUCCESS', 'EXECUTE_PROCESSING', 'TIME_OUT'])) {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ class YeePayService
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function sign(array $params): string
|
public function sign(array $params): string
|
||||||
{
|
{
|
||||||
unset($params['sign']);
|
unset($params['sign']);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue