Commit b3b0fa53 by 咸鱼

debug

parent ddf5b1e7
...@@ -292,13 +292,13 @@ public class RefundService { ...@@ -292,13 +292,13 @@ public class RefundService {
req.setRefundState(AfterSalesRefunStateEnum.STATE_2.getIndex()); req.setRefundState(AfterSalesRefunStateEnum.STATE_2.getIndex());
} else { } else {
// 其他退款失败的情况 不生成售后单 // 其他退款失败的情况 不生成售后单
throw new ServiceException(ResponseResult.MULTIORDER__ERRORREFUND.getCode()); throw new ServiceException(ResponseResult.MULTIORDER__ERRORREFUND.getMessage());
} }
BaseOrderResponse resp = orderCenterSdkService.orderCancel(req); BaseOrderResponse resp = orderCenterSdkService.orderCancel(req);
if (resp == null || !ObjectUtils.equals(ResponseConstant.SUCCESS_RESPONSE_CODE, resp.getErrcode())) { if (resp == null || !ObjectUtils.equals(ResponseConstant.SUCCESS_RESPONSE_CODE, resp.getErrcode())) {
throw new ServiceException(ResponseResult.ORDER__ERRORREFUND.getCode()); throw new ServiceException(ResponseResult.ORDER__ERRORREFUND.getMessage());
} }
if (state == PayRefundStatus.RUNNING.getCode()) { if (state == PayRefundStatus.RUNNING.getCode()) {
......
...@@ -172,7 +172,8 @@ public class PaymentHandle { ...@@ -172,7 +172,8 @@ public class PaymentHandle {
refundResponse.setMessage(result.getMessage()); refundResponse.setMessage(result.getMessage());
refundResponse.setResult(result); refundResponse.setResult(result);
return refundResponse; return refundResponse;
} catch (Exception e) { } catch (Throwable e) {
ErrorLog.errorConvertJson(this.getClass(), e.getMessage(), e);
refundResponse = new PayRefundResponse(); refundResponse = new PayRefundResponse();
refundResponse.setPayRefundStatus(PayRefundStatus.COMPATIBILITY_STATUS); refundResponse.setPayRefundStatus(PayRefundStatus.COMPATIBILITY_STATUS);
refundResponse.setMessage("请稍后再试!"); refundResponse.setMessage("请稍后再试!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment