关键词个数限制改为把换行符去掉之后不大于1024个字符限制
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user