Commit 983f4b39 by shenjunjie

Merge branch 'feature' into 'release'

案例上新预警log调整

See merge request !576
parents 6e7daab6 d39d34bb
...@@ -4107,13 +4107,15 @@ public class MarkDataServiceImpl implements MarkDataService { ...@@ -4107,13 +4107,15 @@ public class MarkDataServiceImpl implements MarkDataService {
continue; continue;
} }
if (i == 0 || isOnline){ if (i == 0 || isOnline){
if (StringUtils.isNotBlank(splits[i])) {
answer.put("answer", splits[i].trim()); answer.put("answer", splits[i].trim());
answers.add(answer); answers.add(answer);
}
continue; continue;
} }
if (StringUtils.isNotBlank(sonSplit[0])) { if (StringUtils.isNotBlank(sonSplit[0])) {
answer.put("answer", sonSplit[0]); answer.put("answer", sonSplit[0]);
List<String> sonSplitList = new ArrayList<>(Arrays.asList(sonSplit)).stream().skip(1).collect(Collectors.toList()); List<String> sonSplitList = new ArrayList<>(Arrays.asList(sonSplit)).stream().filter(str -> 1 == str.length() && StringUtils.isNotBlank(str)).collect(Collectors.toList());
answer.put("referenceArticles", sonSplitList); answer.put("referenceArticles", sonSplitList);
answers.add(answer); answers.add(answer);
} }
......
...@@ -464,7 +464,10 @@ public class ProjectWarnServiceImpl implements ProjectWarnService { ...@@ -464,7 +464,10 @@ public class ProjectWarnServiceImpl implements ProjectWarnService {
private List<JSONObject> getRankListByType(String type) { private List<JSONObject> getRankListByType(String type) {
String search = TYPE_SEARCH.get(type); String search = TYPE_SEARCH.get(type);
if (null == search) { if (null == search) {
// 2024/8/19 微博话题榜采集下线,防止微博话题配置历史数据影响
if (!Objects.equals(type, "微博话题")) {
log.error("getRankListByType,search-null,type:{}", type); log.error("getRankListByType,search-null,type:{}", type);
}
return Collections.emptyList(); return Collections.emptyList();
} }
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment