# update 权限相关
This commit is contained in:
@@ -29,6 +29,7 @@ import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.annotation.PreDestroy;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.security.InvalidKeyException;
|
||||
@@ -58,6 +59,9 @@ public class UAVService {
|
||||
@Autowired
|
||||
private RedisCache redisCache;
|
||||
|
||||
@Autowired
|
||||
private ScheduledExecutorService executor;
|
||||
|
||||
|
||||
public static final Map<String, Long> latestActiveTime = new ConcurrentHashMap<>();
|
||||
|
||||
@@ -669,7 +673,6 @@ public class UAVService {
|
||||
|
||||
@PostConstruct
|
||||
public void heartbeatMonitor() {
|
||||
ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
|
||||
executor.scheduleWithFixedDelay(() -> {
|
||||
try {
|
||||
Long nowTime = System.currentTimeMillis();
|
||||
@@ -821,4 +824,5 @@ public class UAVService {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user