Showing
1 changed file
with
4 additions
and
2 deletions
@@ -260,18 +260,20 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple | @@ -260,18 +260,20 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple | ||
260 | switch (appraiseOrderStatus){ | 260 | switch (appraiseOrderStatus){ |
261 | case WAITING_PAY: | 261 | case WAITING_PAY: |
262 | Payment payment = Payment.getPayment(pao.getPayment()); | 262 | Payment payment = Payment.getPayment(pao.getPayment()); |
263 | + if (Objects.nonNull(payment)) { | ||
263 | AbstractPayService payService = paymentService.getPayService(payment.getCode()); | 264 | AbstractPayService payService = paymentService.getPayService(payment.getCode()); |
264 | PayQueryBo payQueryBo = payService.payQuery(String.valueOf(orderCode), pao.getCreateTime()); | 265 | PayQueryBo payQueryBo = payService.payQuery(String.valueOf(orderCode), pao.getCreateTime()); |
265 | 266 | ||
266 | - if (payQueryBo != null && payQueryBo.isPayStatus()){ | 267 | + if (payQueryBo != null && payQueryBo.isPayStatus()) { |
267 | logger.info("seller deposit order auto cancel failed, confirm paid. uid is {}, orderCode is {}", uid, orderCode); | 268 | logger.info("seller deposit order auto cancel failed, confirm paid. uid is {}, orderCode is {}", uid, orderCode); |
268 | PayConfirmEvent event = new PayConfirmEvent(uid, orderCode, pao.getPayment()); | 269 | PayConfirmEvent event = new PayConfirmEvent(uid, orderCode, pao.getPayment()); |
269 | EventBusPublisher.publishEvent(event); | 270 | EventBusPublisher.publishEvent(event); |
270 | } | 271 | } |
271 | // 如果近1分钟有预支付记录,则发送 自动取消延迟消息 | 272 | // 如果近1分钟有预支付记录,则发送 自动取消延迟消息 |
272 | - if ( !orderCancelEvent.isFinalRetry()){ | 273 | + if (!orderCancelEvent.isFinalRetry()) { |
273 | paymentService.checkPrePay(uid, orderCode); | 274 | paymentService.checkPrePay(uid, orderCode); |
274 | } | 275 | } |
276 | + } | ||
275 | rows = super.triggerStatusChange(orderCode, AppraiseOrderStatus.CANCEL_TIMEOUT, appraiseOrderStatus); | 277 | rows = super.triggerStatusChange(orderCode, AppraiseOrderStatus.CANCEL_TIMEOUT, appraiseOrderStatus); |
276 | break; | 278 | break; |
277 | default: | 279 | default: |
-
Please register or login to post a comment