Jianghan hai 1 ano
pai
achega
4d8f1f9c40
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. 1 1
      jyBXCore/rpc/service/search.go
  2. 0 2
      jyBXCore/rpc/util/search.go

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

@@ -94,7 +94,7 @@ func GetBidSearchData(in *bxcore.SearchReq, isCache bool) (count int64, list []*
 				var words []string
 				words = strings.Split(in.KeyWords, " ")
 				if in.AdditionalWords != "" {
-					words = strings.Split(in.AdditionalWords, " ")
+					words = append(words, strings.Split(in.AdditionalWords, " ")...)
 				}
 				list = util.SearchListFormat(in.UserId, in.SubInformation, in.PropertyForm, in.Industry, repl, strings.Contains(in.SelectType, "detail"), in.BidField, words)
 			}

+ 0 - 2
jyBXCore/rpc/util/search.go

@@ -6,7 +6,6 @@ import (
 	"bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/rpc/type/bxcore"
 	"fmt"
 	"github.com/gogf/gf/v2/util/gconv"
-	"log"
 	"regexp"
 	"strconv"
 	"strings"
@@ -199,7 +198,6 @@ func SearchListFormat(userid, subInformation, propertyForm, industry string, rep
 			}
 			if highlight["filetext"] != nil && len(highlight["filetext"]) > 0 {
 				var sWords []string
-				log.Println("---words---:", words)
 				for _, v1 := range highlight["filetext"] {
 					for _, w := range words {
 						if strings.Contains(v1, w) {