|
|
@@ -871,6 +871,9 @@ public class MintOrderService {
|
|
|
|
|
|
@Scheduled(cron = "0 0/5 * * * ?")
|
|
|
public void airDropDelayedOrder() {
|
|
|
+ if (generalProperties.isNotifyServer()) {
|
|
|
+ throw new BusinessException("订单服务器不执行");
|
|
|
+ }
|
|
|
List<MintOrder> delayedOrders = mintOrderRepo
|
|
|
.findByStatusAndDelayAndAirDropTimeBefore(MintOrderStatus.AIR_DROP, true, LocalDateTime.now());
|
|
|
delayedOrders.forEach(mintOrder -> {
|
|
|
@@ -905,4 +908,5 @@ public class MintOrderService {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
}
|