更新支付

This commit is contained in:
磷叶 2025-06-06 18:06:06 +08:00
parent 473bbdf809
commit 4cb4ef376e

View File

@ -202,7 +202,7 @@ public class PayServiceImpl implements PayService {
if (result instanceof TmTradeInfo) { if (result instanceof TmTradeInfo) {
TmTradeInfo info = (TmTradeInfo) result; TmTradeInfo info = (TmTradeInfo) result;
channelNo = info.getId(); channelNo = info.getId();
} }
// 挂账 // 挂账
else if (result instanceof CreditPayVO) { else if (result instanceof CreditPayVO) {
CreditPayVO info = (CreditPayVO) result; CreditPayVO info = (CreditPayVO) result;
@ -400,7 +400,7 @@ public class PayServiceImpl implements PayService {
this.refreshPayResult(no); this.refreshPayResult(no);
// 获取刷新后的订单 // 获取刷新后的订单
PayVO pay = this.selectByNo(no); PayVO pay = this.selectByNo(no);
log.info("异步刷新支付结果pay = {}", pay); log.debug("异步刷新支付结果pay = {}", pay);
if (pay == null) { if (pay == null) {
return; return;
} }
@ -415,7 +415,7 @@ public class PayServiceImpl implements PayService {
// 未支付成功并且还未过期则继续延迟刷新 // 未支付成功并且还未过期则继续延迟刷新
if (PayStatus.PAYING.getStatus().equals(pay.getStatus()) && seconds > 0) { if (PayStatus.PAYING.getStatus().equals(pay.getStatus()) && seconds > 0) {
log.info("{}未支付成功,继续延迟刷新", pay.getId()); log.debug("{}未支付成功,继续延迟刷新", pay.getId());
scheduledExecutorService.schedule(() -> { scheduledExecutorService.schedule(() -> {
this.refreshPayResultBeforeExpire(no); this.refreshPayResultBeforeExpire(no);
}, 20, TimeUnit.SECONDS); }, 20, TimeUnit.SECONDS);