feat: 搜索中心 动态字段自动匹配es查询

This commit is contained in:
super_liu
2021-08-04 18:05:34 +08:00
parent 3a19c44991
commit 997543fcae
2 changed files with 20 additions and 6 deletions
@@ -19,7 +19,7 @@ public class SQLFilter {
for(int i$ = 0; i$ < len$; ++i$) {
String keyword = arr$[i$];
if (checkStr.indexOf(keyword) != -1) {
if (checkStr.indexOf(keyword) != -1 && checkStr.indexOf("selectindex") == -1 && checkStr.indexOf("selectvalue") == -1) {
throw new AdcDaBaseException("包含非法字符");
}
}