首页统计

localizer
lzq 2025-11-21 16:00:55 +08:00
parent 28adc5863b
commit a1d837b5a5
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ public class OnStarted {
Integer speed = param.getSpeed();
CompletableFuture.runAsync(() -> {
try {
LocalDateTime startTime = LocalDateTime.now().minusSeconds(300);
LocalDateTime startTime = LocalDateTime.now().minusSeconds(60 * 30);
int errCount = 0;
while (true) {
// 检查是否被取消
@ -165,7 +165,7 @@ public class OnStarted {
List<TruckLocationTrackEntity> records = resultPage.getRecords();
if (records.isEmpty()) {
if (errCount >= 300) {
if (errCount >= 3600) {
log.error("暂无实时数据, 车牌号: {}, 时间: {}", licensePlate, startTime);
Websocket.publish(new WsMsg()
.setEvent("down/truck_location_track/realtime")