Browse Source

调试退款接口

master
lanzu_qinsheng 5 years ago
parent
commit
6a1f8ff077
  1. 6
      app/Service/v3/Implementations/PaymentService.php

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

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

Loading…
Cancel
Save