|
@@ -191,6 +191,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
buyer string //采购单位
|
|
|
winner string //中标企业
|
|
|
agency string //招标代理机构
|
|
|
+ bwa bool
|
|
|
)
|
|
|
queryItems = userInfo.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
isPayedUser = userInfo.IsPayedUser()
|
|
@@ -203,6 +204,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
buyer = m.GetString("buyer") //采购单位
|
|
|
winner = m.GetString("winner") //中标企业
|
|
|
agency = m.GetString("agency") //招标代理机构
|
|
|
+ bwa = buyer != "" || winner != "" || agency != ""
|
|
|
}
|
|
|
// p329 非反爬白名单用户不放开 需要处理通用词
|
|
|
onList, _ := jyutil.IsOnTheWhitelist(m.Session())
|
|
@@ -214,7 +216,8 @@ func (m *Front) PcAjaxReq() {
|
|
|
b_word, a_word, s_word := jy.InterceptSearchKW(searchValueString, util.IntAllDef(config.Sysconfig["keywordsLimit"], 35), len(industry) == 0)
|
|
|
//放开用户不输入关键词可搜索 --P297需求
|
|
|
// p329 反爬白名单用户放开 非反爬白名单用户不放开 未输入关键词
|
|
|
- if len(s_word) > 0 || (len(s_word) >= 0 && onList) || len(industry) > 0 || strings.TrimSpace(additionalWords) != "" {
|
|
|
+ //P492招标采购搜索匹配采购单位等优化--采购单位 || 中标企业 || 招标代理机构 有任何一个都可以进行搜索
|
|
|
+ if len(s_word) > 0 || (len(s_word) >= 0 && onList) || len(industry) > 0 || strings.TrimSpace(additionalWords) != "" || bwa {
|
|
|
searchLimit := public.IsSearchLimit(queryItems)
|
|
|
//未登录用户标题、正文都限制,已登录用户只限制正文
|
|
|
if userId == "" {
|