添加日志
This commit is contained in:
@@ -269,6 +269,8 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
int subscribeCycleForCatalog = Math.max(device.getSubscribeCycleForCatalog(),30);
|
||||
// 设置最小值为30
|
||||
dynamicTask.startCron(device.getDeviceId() + "catalog", catalogSubscribeTask, (subscribeCycleForCatalog -1) * 1000);
|
||||
|
||||
catalogSubscribeTask.run();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -302,6 +304,7 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
int subscribeCycleForCatalog = Math.max(device.getSubscribeCycleForMobilePosition(),30);
|
||||
// 刷新订阅
|
||||
dynamicTask.startCron(device.getDeviceId() + "mobile_position" , mobilePositionSubscribeTask, subscribeCycleForCatalog * 1000);
|
||||
mobilePositionSubscribeTask.run();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user