汇付回调

This commit is contained in:
Guoqs
2024-08-09 16:19:07 +08:00
parent 849ce6bc23
commit 13e8593a7c
3 changed files with 11 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.pile.service.impl;
import com.alibaba.fastjson2.JSON;
import com.google.common.collect.Maps;
import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.core.redis.RedisCache;
@@ -26,7 +27,11 @@ public class AdapayCallbackRecordServiceImpl implements AdapayCallbackRecordServ
@Override
public void saveAdapayCallbackRecord(AdapayCallbackRecord callbackRecord) {
adapayCallbackRecordMapper.insert(callbackRecord);
try {
adapayCallbackRecordMapper.insert(callbackRecord);
} catch (Exception e) {
log.error("saveAdapayCallbackRecord:{}, error", JSON.toJSONString(callbackRecord), e);
}
}
/**

View File

@@ -3204,7 +3204,9 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
public void retryRefundOrder(String orderCode) throws BaseAdaPayException {
// 查询订单信息
OrderBasicInfo orderBasicInfo = getOrderInfoByOrderCode(orderCode);
retryRefundOrder(orderBasicInfo);
if (orderBasicInfo != null) {
retryRefundOrder(orderBasicInfo);
}
}
@Override