mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
逗号或空格分割关键字
This commit is contained in:
@@ -267,7 +267,7 @@ public class CourseFullTextApi extends ApiBaseController{
|
|||||||
|
|
||||||
if (StringUtils.isNotBlank(c.getKeywords()) ){
|
if (StringUtils.isNotBlank(c.getKeywords()) ){
|
||||||
String[] keywords = c.getKeywords().split(",");
|
String[] keywords = c.getKeywords().split(",");
|
||||||
if (keywords.length == 0){
|
if (keywords.length == 1){
|
||||||
keywords = c.getKeywords().split(" ");
|
keywords = c.getKeywords().split(" ");
|
||||||
}
|
}
|
||||||
if (keywords.length > 0){
|
if (keywords.length > 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user