Browse Source

提现error_code改err_code

master
weigang 5 years ago
parent
commit
ee2ebda406
  1. 16
      app/Service/v3/Implementations/PaymentService.php

16
app/Service/v3/Implementations/PaymentService.php

@ -189,10 +189,10 @@ class PaymentService implements PaymentServiceInterface
// 如果是商户余额不足等原因,要发送短信给老总
$arr = ['NOTENOUGH','AMOUNT_LIMIT','NO_AUTH'];
if (in_array($result['error_code'], $arr)) {
if (in_array($result['err_code'], $arr)) {
$redis = ApplicationContext::getContainer()->get(Redis::class);
if (!$redis->exists('send_withdraw_refuse_reson_'.date('Ymd'))) {
$this->smsAliSendService->doWithdrawFail($result['error_code'], $result['error_code_des']);
$this->smsAliSendService->doWithdrawFail($result['err_code'], $result['err_code_des']);
}
}
@ -204,17 +204,17 @@ class PaymentService implements PaymentServiceInterface
$arr = ['NAME_MISMATCH','V2_ACCOUNT_SIMPLE_BAN', 'SENDNUM_LIMIT'];
$msg = '';
if (in_array($result['error_code'], $arr)) {
$msg = $result['error_code_des'];
if (in_array($result['err_code'], $arr)) {
$msg = $result['err_code_des'];
}
if ($result['error_code'] == 'SENDNUM_LIMIT') {
if ($result['err_code'] == 'SENDNUM_LIMIT') {
throw new ErrorCodeException(ErrorCode::PAYMENT_SEND_NUM_LIMIT);
} elseif ($result['error_code'] == 'V2_ACCOUNT_SIMPLE_BAN') {
} elseif ($result['err_code'] == 'V2_ACCOUNT_SIMPLE_BAN') {
throw new ErrorCodeException(ErrorCode::PAYMENT_V2_ACCOUNT_SIMPLE_BAN);
} elseif ($result['error_code'] == 'NAME_MISMATCH') {
} elseif ($result['err_code'] == 'NAME_MISMATCH') {
throw new ErrorCodeException(ErrorCode::PAYMENT_NAME_MISMATCH);
} elseif ($result['error_code'] == 'AMOUNT_LIMIT') {
} elseif ($result['err_code'] == 'AMOUNT_LIMIT') {
throw new ErrorCodeException(ErrorCode::PAYMENT_AMOUNT_LIMIT);
}

Loading…
Cancel
Save