‘linchangsheng’ há 3 semanas atrás
pai
commit
86ea1f6ca2

+ 4 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/policy/WorkerLogic.java

@@ -543,6 +543,10 @@ public class WorkerLogic {
 
         PolicyOrder policyOrder = policyOrderService.getById(policyOrderId);
 
+        if (DateUtil.offsetMinute(policyOrder.getCreateTime(),5).before(new Date())){
+            throw new RemoteServiceException("订单超过五分钟支付时间,请刷新重新购买");
+        }
+
         AdminWebsit adminWebsit = adminWebsitService.getById(policyOrder.getWebsitId());
 
         if (StringUtil.isEmpty(adminWebsit.getPayWorkerCodeId()))