更新支付
This commit is contained in:
parent
473bbdf809
commit
4cb4ef376e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user