逗号或空格分割关键字

This commit is contained in:
lims1@hunktimes.com
2023-07-17 10:00:56 +08:00
parent 6ac6d6e53a
commit 5045441763

View File

@@ -267,7 +267,7 @@ public class CourseFullTextApi extends ApiBaseController{
if (StringUtils.isNotBlank(c.getKeywords()) ){
String[] keywords = c.getKeywords().split(",");
if (keywords.length == 0){
if (keywords.length == 1){
keywords = c.getKeywords().split(" ");
}
if (keywords.length > 0){