Ver código fonte

wip:排除空字符串

wangshan 1 ano atrás
pai
commit
2ab2f5c06b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      jyBXCore/rpc/util/search.go

+ 1 - 1
jyBXCore/rpc/util/search.go

@@ -200,7 +200,7 @@ func SearchListFormat(userid, subInformation, propertyForm, industry string, rep
 				var sWords []string
 				for _, v1 := range highlight["filetext"] {
 					for _, w := range words {
-						if strings.Contains(v1, w) {
+						if strings.Contains(v1, w) && w != "" {
 							sWords = append(sWords, w)
 						}
 					}