|
|
@ -130,12 +130,8 @@ class PaymentService implements PaymentServiceInterface |
|
|
if ($result['return_code'] == 'SUCCESS' && isset($result['result_code']) && $result['result_code'] == "SUCCESS") { |
|
|
if ($result['return_code'] == 'SUCCESS' && isset($result['result_code']) && $result['result_code'] == "SUCCESS") { |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_FAIL); |
|
|
|
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_FAIL,$result['err_code_des']); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $result; |
|
|
|
|
|
} catch (\Exception $e) { |
|
|
} catch (\Exception $e) { |
|
|
$this->log->event(LogLabel::ORDER_PAYMENT_LOG, ['payment_do_exception_msg' => $e->getMessage()]); |
|
|
$this->log->event(LogLabel::ORDER_PAYMENT_LOG, ['payment_do_exception_msg' => $e->getMessage()]); |
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_FAIL, '[退款失败]'.$e->getMessage()); |
|
|
throw new ErrorCodeException(ErrorCode::PAYMENT_FAIL, '[退款失败]'.$e->getMessage()); |
|
|
|