|
@@ -187,6 +187,10 @@ func (m *Front) PcAjaxReq() {
|
|
|
isLimit = 1
|
|
|
list []*map[string]interface{}
|
|
|
heightKeys string //需要高亮的关键词
|
|
|
+ //P492招标采购搜索匹配采购单位等优化
|
|
|
+ buyer string //采购单位
|
|
|
+ winner string //中标企业
|
|
|
+ agency string //招标代理机构
|
|
|
)
|
|
|
queryItems = userInfo.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
isPayedUser = userInfo.IsPayedUser()
|
|
@@ -195,6 +199,10 @@ func (m *Front) PcAjaxReq() {
|
|
|
hasBuyerTel, hasWinnerTel = m.GetString("buyertel"), m.GetString("winnertel")
|
|
|
notkey = m.GetString("notkey")
|
|
|
city = m.GetString("city")
|
|
|
+ //P492招标采购搜索匹配采购单位等优化
|
|
|
+ buyer = m.GetString("buyer") //采购单位
|
|
|
+ winner = m.GetString("winner") //中标企业
|
|
|
+ agency = m.GetString("agency") //招标代理机构
|
|
|
}
|
|
|
// p329 非反爬白名单用户不放开 需要处理通用词
|
|
|
onList, _ := jyutil.IsOnTheWhitelist(m.Session())
|
|
@@ -223,7 +231,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
}
|
|
|
if isLimit == 1 {
|
|
|
searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
- so := NewSearchOptimize(userId, phone, area, city, district, subtype, toptype, publishtime, strings.Join(queryItems, ","), fmt.Sprintf("%s-%s", minprice, maxprice), industry, buyerclass, hasBuyerTel, hasWinnerTel, fileExists, s_word, additionalWords, notkey, "PC", territorialization, expireTime, propertyForm, subinformation, currentPage, pageSize, searchGroup, searchMode, wordsMode, period, scale, changehand, isfile, *userInfo, searchTypeSwitch, m.Request, accountId, entAccountId, entId, entUserId)
|
|
|
+ so := NewSearchOptimize(userId, phone, area, city, district, subtype, toptype, publishtime, strings.Join(queryItems, ","), fmt.Sprintf("%s-%s", minprice, maxprice), industry, buyerclass, hasBuyerTel, hasWinnerTel, fileExists, s_word, additionalWords, notkey, "PC", territorialization, expireTime, propertyForm, subinformation, currentPage, pageSize, searchGroup, searchMode, wordsMode, period, scale, changehand, isfile, *userInfo, searchTypeSwitch, m.Request, accountId, entAccountId, entId, entUserId, buyer, winner, agency)
|
|
|
if so.PageNum < 0 && so.PageSize < 0 {
|
|
|
log.Printf("查询参数超出范围,有可能是异常请求; 用户id:%s;用户手机号:%s \n", userId, phone)
|
|
|
} else {
|
|
@@ -234,9 +242,8 @@ func (m *Front) PcAjaxReq() {
|
|
|
}
|
|
|
} else {
|
|
|
searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
- so := NewSearchOptimize(userId, phone, area, city, district, subtype, toptype, publishtime, strings.Join(queryItems, ","), fmt.Sprintf("%s-%s", minprice, maxprice), industry, buyerclass, hasBuyerTel, hasWinnerTel, fileExists, s_word, additionalWords, notkey, "PC", territorialization, expireTime, propertyForm, subinformation, currentPage, pageSize, searchGroup, searchMode, wordsMode, period, scale, changehand, isfile, *userInfo, searchTypeSwitch, m.Request, accountId, entAccountId, entId, entUserId)
|
|
|
+ so := NewSearchOptimize(userId, phone, area, city, district, subtype, toptype, publishtime, strings.Join(queryItems, ","), fmt.Sprintf("%s-%s", minprice, maxprice), industry, buyerclass, hasBuyerTel, hasWinnerTel, fileExists, s_word, additionalWords, notkey, "PC", territorialization, expireTime, propertyForm, subinformation, currentPage, pageSize, searchGroup, searchMode, wordsMode, period, scale, changehand, isfile, *userInfo, searchTypeSwitch, m.Request, accountId, entAccountId, entId, entUserId, buyer, winner, agency)
|
|
|
list, count, total = so.GetBidSearchListByCache()
|
|
|
-
|
|
|
}
|
|
|
if userId == "" {
|
|
|
for _, v := range list {
|