退款申请接口实现优化
This commit is contained in:
parent
df1e4a4574
commit
aa3c09b95e
@ -384,6 +384,7 @@ public class WxPayServiceImpl implements WxPayService {
|
||||
ebikeRefund.setRemark(processDto.getReason());
|
||||
if (String.valueOf(RefundProcessState.processing).equals(processDto.getOperate())) {
|
||||
ebikeRefund.setRefund(ebikeRefund.getRefundApply());
|
||||
ebikeRefund.setRefundMethod(processDto.getMethod());
|
||||
}
|
||||
return ebikeRefundService.updateById(ebikeRefund);
|
||||
}
|
||||
@ -531,17 +532,13 @@ public class WxPayServiceImpl implements WxPayService {
|
||||
private void logError(String desc, Exception e) {
|
||||
if (e instanceof HttpException httpException) {
|
||||
log.error("{} 发送HTTP请求失败, {}", desc, httpException.getHttpRequest());
|
||||
}
|
||||
else if (e instanceof ServiceException serviceException) {
|
||||
} else if (e instanceof ServiceException serviceException) {
|
||||
log.error("{} 服务返回状态不正常, {}", desc, serviceException.getResponseBody());
|
||||
}
|
||||
else if (e instanceof MalformedMessageException malformedMessageException) {
|
||||
} else if (e instanceof MalformedMessageException malformedMessageException) {
|
||||
log.error("{} 返回体类型不合法或者解析返回体失败, {}", desc, malformedMessageException.getMessage());
|
||||
}
|
||||
else if (e instanceof ValidationException validationException) {
|
||||
} else if (e instanceof ValidationException validationException) {
|
||||
log.error("{} 验签失败,验证签名失败,{}", desc, validationException.getMessage());
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
log.error("{} 执行异常, {}", desc, e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user