code review 支付相关的代码实现

This commit is contained in:
YunaiV
2021-11-21 12:24:08 +08:00
parent 7d6f205dc0
commit b18cd457c8
7 changed files with 11 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ import java.util.Map;
@Builder
public class PayNotifyDataDTO {
// TODO @jason使用 /** */ 的形式注释哈
//返回的所有参数
private String body;

View File

@@ -105,12 +105,11 @@ public abstract class AbstractPayClient<Config extends PayClientConfig> implemen
@Override
public PayRefundUnifiedRespDTO unifiedRefund(PayRefundUnifiedReqDTO reqDTO) {
PayRefundUnifiedRespDTO resp;
try {
resp = doUnifiedRefund(reqDTO);
}catch (SocketTimeoutException ex){
//网络 read time out 异常
} catch (SocketTimeoutException ex){
// 网络 read time out 异常
log.error("[unifiedRefund][request({}) 发起退款失败,网络读超时,退款状态未知]", toJsonString(reqDTO), ex);
return PayRefundUnifiedRespDTO.builder()
.exceptionMsg(ex.getMessage())

View File

@@ -1,5 +1,6 @@
package cn.iocoder.yudao.framework.pay.core.enums;
// TODO @芋艿:感觉情况有点多,得讨论下
/**
* 统一的渠道返回结果
* @author jason