关键词个数限制改为把换行符去掉之后不大于1024个字符限制

This commit is contained in:
wangxin
2018-10-30 15:19:13 +08:00
parent 4c858bf016
commit 7850f7dca8
4 changed files with 5 additions and 5 deletions

View File

@@ -902,7 +902,7 @@ public class BaseController {
}
}
if (!has) {
if(keyword.split("\n").length>4) {
if(keyword.replaceAll("\n","").length()>1024) {
errInfo.append(String.format(prop.getProperty("most_keywords"),
prop.getProperty("key_word")) + ";");
}else {
@@ -1147,7 +1147,7 @@ public class BaseController {
}
}
if (!has) {
if(keyword.split("\n").length>4) {
if(keyword.replaceAll("\n","").length()>1024) {
errInfo.append(String.format(prop.getProperty("most_keywords"),
prop.getProperty("key_word")) + ";");
}else {