|
@@ -246,7 +246,7 @@ public class ContentScreenJob {
|
|
|
if (Objects.isNull(strategyName) || strategyName.isEmpty()) {
|
|
if (Objects.isNull(strategyName) || strategyName.isEmpty()) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
- JSONObject resultJson = JSONObject.parseObject(strategyName);
|
|
|
|
|
|
|
+ JSONObject resultJson = jsonObject.getJSONObject(strategyName);
|
|
|
if (Objects.isNull(resultJson) || resultJson.isEmpty()) {
|
|
if (Objects.isNull(resultJson) || resultJson.isEmpty()) {
|
|
|
return SpiderContentScreenStatusEnum.ABANDONED.getCode();
|
|
return SpiderContentScreenStatusEnum.ABANDONED.getCode();
|
|
|
}
|
|
}
|
|
@@ -449,7 +449,7 @@ public class ContentScreenJob {
|
|
|
XxlJobLogger.log("articleAnalyseConfigDTO config is null or empty");
|
|
XxlJobLogger.log("articleAnalyseConfigDTO config is null or empty");
|
|
|
return ReturnT.SUCCESS;
|
|
return ReturnT.SUCCESS;
|
|
|
}
|
|
}
|
|
|
- Integer lastDays = titleAnalyseConfigDTO.getLastDays();
|
|
|
|
|
|
|
+ Integer lastDays = articleAnalyseConfigDTO.getLastDays();
|
|
|
Long lastTime = LocalDateTime.now().minusDays(lastDays).atZone(ZoneId.systemDefault())
|
|
Long lastTime = LocalDateTime.now().minusDays(lastDays).atZone(ZoneId.systemDefault())
|
|
|
.toInstant()
|
|
.toInstant()
|
|
|
.toEpochMilli();
|
|
.toEpochMilli();
|