|
|
@ -207,7 +207,18 @@ class PaymentService implements PaymentServiceInterface |
|
|
if (in_array($result['error_code'], $arr)) { |
|
|
if (in_array($result['error_code'], $arr)) { |
|
|
$msg = $result['error_code_des']; |
|
|
$msg = $result['error_code_des']; |
|
|
} |
|
|
} |
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_FAIL, $msg); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($result['error_code'] == 'SENDNUM_LIMIT') { |
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_SEND_NUM_LIMIT); |
|
|
|
|
|
} elseif ($result['error_code'] == 'V2_ACCOUNT_SIMPLE_BAN') { |
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_V2_ACCOUNT_SIMPLE_BAN); |
|
|
|
|
|
} elseif ($result['error_code'] == 'NAME_MISMATCH') { |
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_NAME_MISMATCH); |
|
|
|
|
|
} elseif ($result['error_code'] == 'AMOUNT_LIMIT') { |
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_AMOUNT_LIMIT); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_FAIL); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
|