REM:
1.修改启动处置任务默认时长
This commit is contained in:
chenlinghy 2020-11-19 10:26:35 +08:00
parent 0fd832d05c
commit ee0dbf6525
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class DisposeTaskController {
Long devId = Long.parseLong(Optional.ofNullable(req.getDeviceId()).orElse("-1"));
Long aId = userAccountService.getUserIdByAuthHead(Objects.requireNonNull(headers.get("Authorization")).get(0));
DisposeCapacityType capType = CommonEnumHandler.codeOf(DisposeCapacityType.class, req.getType());
String endTime = String.valueOf(req.getDisposeTime() == -1 ? 52560000 : req.getDisposeTime());
String endTime = String.valueOf(req.getDisposeTime() == -1 ? 5256000: req.getDisposeTime());
NetflowDirection netDir = CommonEnumHandler.codeOf(NetflowDirection.class,
Optional.ofNullable(req.getFlowDirection()).orElse(2));
Long attackType = DDoSAttackType.getTypeMaskFromAttackType(Optional.ofNullable(req.getAttackType())