Merge branch 'v2.0.2_dev' into 'master'
V2.0.2 dev See merge request DDOSAQ/phoenix_ddos_handle!13
This commit is contained in:
commit
ce1ef4aa2a
|
@ -568,6 +568,8 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService {
|
|||
|
||||
// 如果设备已经删除或者禁用,跳过处理
|
||||
if (ai == null) {
|
||||
// 设置任务状态为已完成
|
||||
deviceTaskManager.changeDisposeDeviceTaskInfoStatus(v.getId(), DisposeTaskStatus.TASK_FINISHED);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -634,6 +636,13 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService {
|
|||
// 获取设备
|
||||
AbilityInfo ai = disposeAbilityRouterService.getAbilityDevice(v.getDeviceId());
|
||||
|
||||
// 如果设备已经删除或者禁用,跳过处理
|
||||
if (ai == null) {
|
||||
// 设置任务状态为已完成
|
||||
deviceTaskManager.changeDisposeDeviceTaskInfoStatus(v.getId(), DisposeTaskStatus.TASK_FINISHED);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 对处置IP生成一个唯一的操作标识符
|
||||
String taskStopKey = task.getDisposeObject() + "Stop" + ai.getDev().getDeviceType().getDescription();
|
||||
|
||||
|
|
Loading…
Reference in New Issue