|
|
|
@ -127,11 +127,7 @@ class PaymentService implements PaymentServiceInterface |
|
|
|
'notify_url' => config('wechat.notify_url.refund'), |
|
|
|
] |
|
|
|
); |
|
|
|
if ($result['return_code']=="SUCCESS"&&isset($result['result_code'])&&$result['result_code']=="SUCCESS"){ |
|
|
|
return true; |
|
|
|
}else{ |
|
|
|
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()); |
|
|
|
|