|
@@ -80,10 +80,20 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
|
|
|
if in.KeyWords != "" {
|
|
|
res.InterceptKeywords, res.InterceptWord, in.KeyWords = util.InterceptSearchKW(in.KeyWords, MC.IntAllDef(IC.C.KeywordsLimit, 35), len(in.Industry) == 0)
|
|
|
}
|
|
|
+ if in.UserId == "" {
|
|
|
+ //未登录用户访信息类型 需要过滤掉 拟建和采购意向问全部
|
|
|
+ if in.Subtype == "" {
|
|
|
+ in.Subtype = "招标预告,招标公告,招标结果,招标信用信息"
|
|
|
+ }
|
|
|
+ }
|
|
|
//查询数据
|
|
|
if in.KeyWords != "" || in.Industry != "" {
|
|
|
//查询数据
|
|
|
searchLimit := util.IsSearchLimit(strings.Split(in.SelectType, ","))
|
|
|
+ //未登录用户标题、正文都限制,已登录用户只限制正文
|
|
|
+ if in.UserId == "" {
|
|
|
+ searchLimit = true
|
|
|
+ }
|
|
|
//全文检索限制
|
|
|
if searchLimit {
|
|
|
res.IsLimit = util.IsLimited(in.LimitFlag, in.UserId, in.UserType != "fType", in.IsNew)
|