‘linchangsheng’ 5 روز پیش
والد
کامیت
d9a79c1428
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/order/PayOrderLogic.java

+ 3 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/order/PayOrderLogic.java

@@ -1224,6 +1224,9 @@ public class PayOrderLogic {
 
         WorkerOrder workerOrder = workerOrderService.getById(orderId);
 
+        if (workerOrder == null)
+            throw new RemoteServiceException("单号已变更,请刷新数据");
+
         AdminWebsit adminWebsit = adminWebsitService.getById(workerOrder.getWebsitId());
 
         if (StringUtil.isEmpty(adminWebsit.getPayWorkerCodeId()))