|
@@ -18,6 +18,7 @@ import (
|
|
"regexp"
|
|
"regexp"
|
|
"strconv"
|
|
"strconv"
|
|
"strings"
|
|
"strings"
|
|
|
|
+ "time"
|
|
"unicode"
|
|
"unicode"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -163,6 +164,7 @@ const (
|
|
|
|
|
|
//GetBidSearchData 标信息搜索
|
|
//GetBidSearchData 标信息搜索
|
|
func GetBidSearchData(in *bxcore.SearchReq) (count int64, list []*bxcore.SearchList) {
|
|
func GetBidSearchData(in *bxcore.SearchReq) (count int64, list []*bxcore.SearchList) {
|
|
|
|
+ t := time.Now()
|
|
var hightlightContent bool = false //是否高亮正文
|
|
var hightlightContent bool = false //是否高亮正文
|
|
var selectTypeArr = strings.Split(in.SelectType, ",")
|
|
var selectTypeArr = strings.Split(in.SelectType, ",")
|
|
for _, v := range selectTypeArr {
|
|
for _, v := range selectTypeArr {
|
|
@@ -233,9 +235,11 @@ func GetBidSearchData(in *bxcore.SearchReq) (count int64, list []*bxcore.SearchL
|
|
list = append(list, searchList)
|
|
list = append(list, searchList)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ logx.Info("关键词 -1- 查询耗时:", time.Since(t).Seconds())
|
|
MakeCollection(in.UserId, list)
|
|
MakeCollection(in.UserId, list)
|
|
logx.Info("=====:", len(list))
|
|
logx.Info("=====:", len(list))
|
|
}
|
|
}
|
|
|
|
+ logx.Info("关键词 查询耗时:", time.Since(t).Seconds())
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|