// 搜索6个场景校验
String[] appSceneCheck = {"default_page", "click_sug", "mobile_multi", "show_episode", "detail_page", "result_filter"};
boolean flag = false;
for (int i = 0; i < appSceneCheck.length; i++) {
// 如果appScene非搜索业务场景,则不判断此数据,进行下一条数据的判断
if (appScene.equals(appSceneCheck[i])) {
flag = true;
// break
}
}
if (!flag) {
return;
}
switch (appScene) {
case "default_page":
default_page.parse2JSON(json, count, currentTimeMillis);
System.out.println("第" + count + "条,【default_page搜索默认页】场景校验结束!!!");
break;
case "mobile_multi":
mobile_multi.parse2JSON(json, count, currentTimeMillis);
System.out.println("第" + count + "条,【mobile_multi搜索结果页】场景校验结束!!!");
break;
case "detail_page":
detail_page.parse2JSON(json, count, currentTimeMillis);
System.out.println("第" + count + "条,【detail_page搜索结果详情页】场景校验结束!!!");
break;
case "show_episode":
show_episode.parse2JSON(json, count, currentTimeMillis);
System.out.println("第" + count + "条,【show_episode搜索结果选集页】场景校验结束!!!");
break;
case "result_filter":
result_filter.parse2JSON(json, count, currentTimeMillis);
System.out.println("第" + count + "条,【result_filter搜索结果页-筛选】场景校验结束!!!");
break;
case "click_sug":
click_sug.parse2JSON(json, count, currentTimeMillis);
System.out.println("第" + count + "条,【click_sug搜索搜索默认页kubox】场景校验结束!!!");
break;
default:
System.out.println("第" + count + "条,其他搜索场景");
}
}
}
待续。。。