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