|
@@ -81,209 +81,209 @@ func (m *Front) Searchinfolist(p string) error {
|
|
|
}
|
|
|
|
|
|
// PcAjaxReq ajax分页请求
|
|
|
-func (m *Front) PcAjaxReq() {
|
|
|
- territorialization := m.GetString("bid_field") // 领域类型 0101- 医疗
|
|
|
- tabularflag := m.GetString("tabularflag")
|
|
|
- sessVal := m.Session().GetMultiple()
|
|
|
- userId := util.ObjToString(sessVal["userId"])
|
|
|
- accountId := util.Int64All(sessVal["accountId"])
|
|
|
- entAccountId := util.Int64All(sessVal["entAccountId"])
|
|
|
- entId := util.Int64All(sessVal["entId"])
|
|
|
- entUserId := util.Int64All(sessVal["entUserId"])
|
|
|
- phone := util.ObjToString(sessVal["phone"])
|
|
|
- currentPage, _ := m.GetInteger("pageNumber")
|
|
|
- pageSize, _ := m.GetInteger("pageSize")
|
|
|
- mobileTag := m.GetSlice("mobileTag[]") //P513中国移动定制招标采购搜索
|
|
|
-
|
|
|
- if pageSize == 0 {
|
|
|
- pageSize = 50
|
|
|
- }
|
|
|
- //userId = "63c11681800b227df5874680"//免费
|
|
|
- //userId = "63d5cc0098f6fae01592ea7f" //付费
|
|
|
- if tabularflag == "Y" && userId == "" {
|
|
|
- //判断用户是否登录进行表格查询,否则返回基本数据
|
|
|
- tabularflag = ""
|
|
|
- }
|
|
|
- userInfo := jy.GetVipState(m.Session(), *config.Middleground, userId)
|
|
|
- if territorialization != "" && territorialization != "BIProperty" { // 如果是领域化数据 判断是否是付费用户 是否有权限 ,也不是物业产品
|
|
|
- if (userInfo.BigMember <= 0 && userInfo.VipState <= 0) || (!jy.HasBidFieldPower(config.Middleground, m.Session(), MedicalFunctionCode)) {
|
|
|
- m.ServeJson(map[string]interface{}{
|
|
|
- "list": []map[string]interface{}{},
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if len(mobileTag) > 0 { //当无该权限,把此字段置空
|
|
|
- if !jy.HasBidFieldPower(config.Middleground, m.Session(), MobileTagSearchFunctionCode) {
|
|
|
- mobileTag = []string{}
|
|
|
- } else if mobileTag[0] == "all" {
|
|
|
- mobileTag = mobileTagItemsValOptionsAll
|
|
|
- }
|
|
|
- }
|
|
|
- area := m.GetString("area")
|
|
|
- district := m.GetString("district")
|
|
|
- subtype := m.GetString("subtype")
|
|
|
- toptype := m.GetString("toptype") //信息类型
|
|
|
- publishtime := m.GetString("publishtime")
|
|
|
- selectType := m.GetString("selectType")
|
|
|
- if selectType == "" {
|
|
|
- selectType = "title,content"
|
|
|
- }
|
|
|
- searchGroup, _ := m.GetInteger("searchGroup") //搜索分组;默认0:全部;1:招标采购搜索;2:超前项目。
|
|
|
- //物业版本参数接收
|
|
|
- //地区
|
|
|
- //到期时间
|
|
|
- expireTime := m.GetString("expireTime")
|
|
|
- //物业业态 propertyForm
|
|
|
- propertyForm := m.GetString("propertyForm")
|
|
|
- //业务类型 subinformation
|
|
|
- subinformation := m.GetString("subinformation")
|
|
|
- //合同周期 period
|
|
|
- period := m.GetString("period")
|
|
|
- //价格区间 scale
|
|
|
- scale := m.GetString("scale")
|
|
|
- //价格区间 scale
|
|
|
- isfile, _ := m.GetInteger("isfile")
|
|
|
- //换手率 changehand
|
|
|
- changehand, _ := m.GetInteger("changehand")
|
|
|
- if userId == "" {
|
|
|
- //未登录用户访问全部信息类型 需要过滤掉 拟建和采购意向
|
|
|
- // p397 未登录用户收回查看拟建权限
|
|
|
- if searchGroup < 2 { //p415 超前项目支持未登录搜索
|
|
|
- if strings.Contains(subtype, "采购意向") || strings.Contains(subtype, "拟建") {
|
|
|
- var ss []string
|
|
|
- for _, v := range strings.Split(subtype, ",") {
|
|
|
- if v != "采购意向" && !strings.Contains(v, "拟建") {
|
|
|
- ss = append(ss, v)
|
|
|
- }
|
|
|
- }
|
|
|
- subtype = strings.Join(ss, ",")
|
|
|
- }
|
|
|
- if subtype == "" {
|
|
|
- subtype = "招标预告,招标公告,招标结果,招标信用信息"
|
|
|
- }
|
|
|
- }
|
|
|
- //未登录用户搜索范围 标题和 正文
|
|
|
- var selectTypeArr []string
|
|
|
- selectTypeSplit := strings.Split(selectType, ",")
|
|
|
- // 未登录用户只能搜标题和正文
|
|
|
- for i := 0; i < len(selectTypeSplit); i++ {
|
|
|
- if selectTypeSplit[i] == "title" || selectTypeSplit[i] == "content" {
|
|
|
- selectTypeArr = append(selectTypeArr, selectTypeSplit[i])
|
|
|
- }
|
|
|
- }
|
|
|
- if len(selectTypeArr) > 0 {
|
|
|
- selectType = strings.Join(selectTypeArr, ",")
|
|
|
- }
|
|
|
- if publishtime != "" {
|
|
|
- publishtime = ""
|
|
|
- }
|
|
|
- }
|
|
|
- industry := strings.TrimSpace(m.GetString("industry"))
|
|
|
- minprice := m.GetString("minprice") //最低价格
|
|
|
- maxprice := m.GetString("maxprice") //最高价格
|
|
|
- fileExists := m.GetString("fileExists") //是否有附件--所有用户都可用此功能 0:全部;1:有附件;-1:无附件
|
|
|
- searchMode, _ := m.GetInteger("searchMode") //搜索模式;默认0:精准模式(不进行系统分词);1:模糊模式(进行系统分词)。
|
|
|
- wordsMode, _ := m.GetInteger("wordsMode") //搜索关键词模式;默认0:包含所有关键词;1:包含任意关键词。
|
|
|
- additionalWords := m.GetString("additionalWords") //关键词:附加关键词(副:五组,每组最多15个字符 每组,号隔开)
|
|
|
- var (
|
|
|
- //高级筛选 仅付费用户可查询
|
|
|
- hasBuyerTel, hasWinnerTel string //是否有采购单位电话、是否有中标单位电话 y:有 n:没有
|
|
|
- buyerclass string //采购单位类别
|
|
|
- notkey string //排除词
|
|
|
- isPayedUser bool
|
|
|
- queryItems []string
|
|
|
- city string //城市
|
|
|
- count, total, bCount int64
|
|
|
- isLimit = 1
|
|
|
- list []*map[string]interface{}
|
|
|
- heightKeys string //需要高亮的关键词
|
|
|
- //P492招标采购搜索匹配采购单位等优化
|
|
|
- buyer string //采购单位
|
|
|
- winner string //中标企业
|
|
|
- agency string //招标代理机构
|
|
|
- bwa bool
|
|
|
- )
|
|
|
- queryItems = userInfo.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
- isPayedUser = userInfo.IsPayedUser()
|
|
|
- if isPayedUser {
|
|
|
- buyerclass = m.GetString("buyerclass")
|
|
|
- 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") //招标代理机构
|
|
|
- bwa = buyer != "" || winner != "" || agency != ""
|
|
|
- }
|
|
|
- // p329 非反爬白名单用户不放开 需要处理通用词
|
|
|
- onList, _ := jyutil.IsOnTheWhitelist(m.Session())
|
|
|
- searchValueString := m.GetString("searchvalue")
|
|
|
- if !onList && len(industry) == 0 {
|
|
|
- searchValueString = jyutil.FilterGeneric(searchValueString) // 关键词处理通用词
|
|
|
- additionalWords = jyutil.AdditionalFilterGeneric(additionalWords) // 附加词处理通用词
|
|
|
- }
|
|
|
- b_word, a_word, s_word := jy.InterceptSearchKW(searchValueString, util.IntAllDef(config.Sysconfig["keywordsLimit"], 35), len(industry) == 0)
|
|
|
- //放开用户不输入关键词可搜索 --P297需求
|
|
|
- // p329 反爬白名单用户放开 非反爬白名单用户不放开 未输入关键词
|
|
|
- //P492招标采购搜索匹配采购单位等优化--采购单位 || 中标企业 || 招标代理机构 有任何一个都可以进行搜索
|
|
|
- if len(s_word) > 0 || (len(s_word) >= 0 && onList) || len(industry) > 0 || strings.TrimSpace(additionalWords) != "" || bwa || len(mobileTag) > 0 {
|
|
|
- searchLimit := public.IsSearchLimit(queryItems)
|
|
|
- //未登录用户标题、正文都限制,已登录用户只限制正文
|
|
|
- if userId == "" {
|
|
|
- searchLimit = true
|
|
|
- }
|
|
|
- //全文检索限制
|
|
|
- if searchLimit {
|
|
|
- //limitFlag = public.Lst.Flag
|
|
|
- isLimit = public.Lst.IsLimited(m.Request, m.ResponseWriter, m.Session(), isPayedUser)
|
|
|
-
|
|
|
- if isLimit == 1 { //没有被限制
|
|
|
- defer public.Lst.Limit()
|
|
|
- }
|
|
|
- }
|
|
|
- if isLimit == 1 {
|
|
|
- searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
- so := NewSearchOptimize(mobileTag, 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 {
|
|
|
- m.SetSession("selectType", so.SelectType)
|
|
|
- heightKeys = so.HeightKeys
|
|
|
- count, total, list = so.GetBidSearchList(false)
|
|
|
- if total < util.Int64All(config.Sysconfig["precisionNum"]) && so.SearchMode == 0 && so.KeyWords != "" {
|
|
|
- soBlur := NewSearchOptimize(mobileTag, 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, 1, wordsMode, period, scale, changehand, isfile, *userInfo, searchTypeSwitch, m.Request, accountId, entAccountId, entId, entUserId, buyer, winner, agency)
|
|
|
- bCount = soBlur.FuzzySearchNumber()
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
- so := NewSearchOptimize(mobileTag, 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 {
|
|
|
- *v = SearchFilter(*v)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- m.ServeJson(map[string]interface{}{
|
|
|
- "limitFlag": false,
|
|
|
- "status": isLimit,
|
|
|
- "list": list,
|
|
|
- "count": count,
|
|
|
- "bCount": bCount,
|
|
|
- "total": total,
|
|
|
- "totalPage": (count + 1) / int64(pageSize),
|
|
|
- "interceptOtherWord": a_word, //截取后 用于提示的关键词
|
|
|
- "interceptKeyWords": b_word, //超出限制长度 截取后的关键词
|
|
|
- "interceptLimit": util.IntAllDef(config.Sysconfig["keywordsLimit"], 35), //限制额度
|
|
|
- "keywords": m.GetString("searchvalue"), //关键词
|
|
|
- "heightWords": heightKeys, //需要高亮的关键词词组 主关键词和附加词合并
|
|
|
- })
|
|
|
-}
|
|
|
+//func (m *Front) PcAjaxReq() {
|
|
|
+// territorialization := m.GetString("bid_field") // 领域类型 0101- 医疗
|
|
|
+// tabularflag := m.GetString("tabularflag")
|
|
|
+// sessVal := m.Session().GetMultiple()
|
|
|
+// userId := util.ObjToString(sessVal["userId"])
|
|
|
+// accountId := util.Int64All(sessVal["accountId"])
|
|
|
+// entAccountId := util.Int64All(sessVal["entAccountId"])
|
|
|
+// entId := util.Int64All(sessVal["entId"])
|
|
|
+// entUserId := util.Int64All(sessVal["entUserId"])
|
|
|
+// phone := util.ObjToString(sessVal["phone"])
|
|
|
+// currentPage, _ := m.GetInteger("pageNumber")
|
|
|
+// pageSize, _ := m.GetInteger("pageSize")
|
|
|
+// mobileTag := m.GetSlice("mobileTag[]") //P513中国移动定制招标采购搜索
|
|
|
+//
|
|
|
+// if pageSize == 0 {
|
|
|
+// pageSize = 50
|
|
|
+// }
|
|
|
+// //userId = "63c11681800b227df5874680"//免费
|
|
|
+// //userId = "63d5cc0098f6fae01592ea7f" //付费
|
|
|
+// if tabularflag == "Y" && userId == "" {
|
|
|
+// //判断用户是否登录进行表格查询,否则返回基本数据
|
|
|
+// tabularflag = ""
|
|
|
+// }
|
|
|
+// userInfo := jy.GetVipState(m.Session(), *config.Middleground, userId)
|
|
|
+// if territorialization != "" && territorialization != "BIProperty" { // 如果是领域化数据 判断是否是付费用户 是否有权限 ,也不是物业产品
|
|
|
+// if (userInfo.BigMember <= 0 && userInfo.VipState <= 0) || (!jy.HasBidFieldPower(config.Middleground, m.Session(), MedicalFunctionCode)) {
|
|
|
+// m.ServeJson(map[string]interface{}{
|
|
|
+// "list": []map[string]interface{}{},
|
|
|
+// })
|
|
|
+// return
|
|
|
+// }
|
|
|
+// }
|
|
|
+// if len(mobileTag) > 0 { //当无该权限,把此字段置空
|
|
|
+// if !jy.HasBidFieldPower(config.Middleground, m.Session(), MobileTagSearchFunctionCode) {
|
|
|
+// mobileTag = []string{}
|
|
|
+// } else if mobileTag[0] == "all" {
|
|
|
+// mobileTag = mobileTagItemsValOptionsAll
|
|
|
+// }
|
|
|
+// }
|
|
|
+// area := m.GetString("area")
|
|
|
+// district := m.GetString("district")
|
|
|
+// subtype := m.GetString("subtype")
|
|
|
+// toptype := m.GetString("toptype") //信息类型
|
|
|
+// publishtime := m.GetString("publishtime")
|
|
|
+// selectType := m.GetString("selectType")
|
|
|
+// if selectType == "" {
|
|
|
+// selectType = "title,content"
|
|
|
+// }
|
|
|
+// searchGroup, _ := m.GetInteger("searchGroup") //搜索分组;默认0:全部;1:招标采购搜索;2:超前项目。
|
|
|
+// //物业版本参数接收
|
|
|
+// //地区
|
|
|
+// //到期时间
|
|
|
+// expireTime := m.GetString("expireTime")
|
|
|
+// //物业业态 propertyForm
|
|
|
+// propertyForm := m.GetString("propertyForm")
|
|
|
+// //业务类型 subinformation
|
|
|
+// subinformation := m.GetString("subinformation")
|
|
|
+// //合同周期 period
|
|
|
+// period := m.GetString("period")
|
|
|
+// //价格区间 scale
|
|
|
+// scale := m.GetString("scale")
|
|
|
+// //价格区间 scale
|
|
|
+// isfile, _ := m.GetInteger("isfile")
|
|
|
+// //换手率 changehand
|
|
|
+// changehand, _ := m.GetInteger("changehand")
|
|
|
+// if userId == "" {
|
|
|
+// //未登录用户访问全部信息类型 需要过滤掉 拟建和采购意向
|
|
|
+// // p397 未登录用户收回查看拟建权限
|
|
|
+// if searchGroup < 2 { //p415 超前项目支持未登录搜索
|
|
|
+// if strings.Contains(subtype, "采购意向") || strings.Contains(subtype, "拟建") {
|
|
|
+// var ss []string
|
|
|
+// for _, v := range strings.Split(subtype, ",") {
|
|
|
+// if v != "采购意向" && !strings.Contains(v, "拟建") {
|
|
|
+// ss = append(ss, v)
|
|
|
+// }
|
|
|
+// }
|
|
|
+// subtype = strings.Join(ss, ",")
|
|
|
+// }
|
|
|
+// if subtype == "" {
|
|
|
+// subtype = "招标预告,招标公告,招标结果,招标信用信息"
|
|
|
+// }
|
|
|
+// }
|
|
|
+// //未登录用户搜索范围 标题和 正文
|
|
|
+// var selectTypeArr []string
|
|
|
+// selectTypeSplit := strings.Split(selectType, ",")
|
|
|
+// // 未登录用户只能搜标题和正文
|
|
|
+// for i := 0; i < len(selectTypeSplit); i++ {
|
|
|
+// if selectTypeSplit[i] == "title" || selectTypeSplit[i] == "content" {
|
|
|
+// selectTypeArr = append(selectTypeArr, selectTypeSplit[i])
|
|
|
+// }
|
|
|
+// }
|
|
|
+// if len(selectTypeArr) > 0 {
|
|
|
+// selectType = strings.Join(selectTypeArr, ",")
|
|
|
+// }
|
|
|
+// if publishtime != "" {
|
|
|
+// publishtime = ""
|
|
|
+// }
|
|
|
+// }
|
|
|
+// industry := strings.TrimSpace(m.GetString("industry"))
|
|
|
+// minprice := m.GetString("minprice") //最低价格
|
|
|
+// maxprice := m.GetString("maxprice") //最高价格
|
|
|
+// fileExists := m.GetString("fileExists") //是否有附件--所有用户都可用此功能 0:全部;1:有附件;-1:无附件
|
|
|
+// searchMode, _ := m.GetInteger("searchMode") //搜索模式;默认0:精准模式(不进行系统分词);1:模糊模式(进行系统分词)。
|
|
|
+// wordsMode, _ := m.GetInteger("wordsMode") //搜索关键词模式;默认0:包含所有关键词;1:包含任意关键词。
|
|
|
+// additionalWords := m.GetString("additionalWords") //关键词:附加关键词(副:五组,每组最多15个字符 每组,号隔开)
|
|
|
+// var (
|
|
|
+// //高级筛选 仅付费用户可查询
|
|
|
+// hasBuyerTel, hasWinnerTel string //是否有采购单位电话、是否有中标单位电话 y:有 n:没有
|
|
|
+// buyerclass string //采购单位类别
|
|
|
+// notkey string //排除词
|
|
|
+// isPayedUser bool
|
|
|
+// queryItems []string
|
|
|
+// city string //城市
|
|
|
+// count, total, bCount int64
|
|
|
+// isLimit = 1
|
|
|
+// list []*map[string]interface{}
|
|
|
+// heightKeys string //需要高亮的关键词
|
|
|
+// //P492招标采购搜索匹配采购单位等优化
|
|
|
+// buyer string //采购单位
|
|
|
+// winner string //中标企业
|
|
|
+// agency string //招标代理机构
|
|
|
+// bwa bool
|
|
|
+// )
|
|
|
+// queryItems = userInfo.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
+// isPayedUser = userInfo.IsPayedUser()
|
|
|
+// if isPayedUser {
|
|
|
+// buyerclass = m.GetString("buyerclass")
|
|
|
+// 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") //招标代理机构
|
|
|
+// bwa = buyer != "" || winner != "" || agency != ""
|
|
|
+// }
|
|
|
+// // p329 非反爬白名单用户不放开 需要处理通用词
|
|
|
+// onList, _ := jyutil.IsOnTheWhitelist(m.Session())
|
|
|
+// searchValueString := m.GetString("searchvalue")
|
|
|
+// if !onList && len(industry) == 0 {
|
|
|
+// searchValueString = jyutil.FilterGeneric(searchValueString) // 关键词处理通用词
|
|
|
+// additionalWords = jyutil.AdditionalFilterGeneric(additionalWords) // 附加词处理通用词
|
|
|
+// }
|
|
|
+// b_word, a_word, s_word := jy.InterceptSearchKW(searchValueString, util.IntAllDef(config.Sysconfig["keywordsLimit"], 35), len(industry) == 0)
|
|
|
+// //放开用户不输入关键词可搜索 --P297需求
|
|
|
+// // p329 反爬白名单用户放开 非反爬白名单用户不放开 未输入关键词
|
|
|
+// //P492招标采购搜索匹配采购单位等优化--采购单位 || 中标企业 || 招标代理机构 有任何一个都可以进行搜索
|
|
|
+// if len(s_word) > 0 || (len(s_word) >= 0 && onList) || len(industry) > 0 || strings.TrimSpace(additionalWords) != "" || bwa || len(mobileTag) > 0 {
|
|
|
+// searchLimit := public.IsSearchLimit(queryItems)
|
|
|
+// //未登录用户标题、正文都限制,已登录用户只限制正文
|
|
|
+// if userId == "" {
|
|
|
+// searchLimit = true
|
|
|
+// }
|
|
|
+// //全文检索限制
|
|
|
+// if searchLimit {
|
|
|
+// //limitFlag = public.Lst.Flag
|
|
|
+// isLimit = public.Lst.IsLimited(m.Request, m.ResponseWriter, m.Session(), isPayedUser)
|
|
|
+//
|
|
|
+// if isLimit == 1 { //没有被限制
|
|
|
+// defer public.Lst.Limit()
|
|
|
+// }
|
|
|
+// }
|
|
|
+// if isLimit == 1 {
|
|
|
+// searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
+// so := NewSearchOptimize(mobileTag, 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 {
|
|
|
+// m.SetSession("selectType", so.SelectType)
|
|
|
+// heightKeys = so.HeightKeys
|
|
|
+// count, total, list = so.GetBidSearchList(false)
|
|
|
+// if total < util.Int64All(config.Sysconfig["precisionNum"]) && so.SearchMode == 0 && so.KeyWords != "" {
|
|
|
+// soBlur := NewSearchOptimize(mobileTag, 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, 1, wordsMode, period, scale, changehand, isfile, *userInfo, searchTypeSwitch, m.Request, accountId, entAccountId, entId, entUserId, buyer, winner, agency)
|
|
|
+// bCount = soBlur.FuzzySearchNumber()
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
+// so := NewSearchOptimize(mobileTag, 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 {
|
|
|
+// *v = SearchFilter(*v)
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// m.ServeJson(map[string]interface{}{
|
|
|
+// "limitFlag": false,
|
|
|
+// "status": isLimit,
|
|
|
+// "list": list,
|
|
|
+// "count": count,
|
|
|
+// "bCount": bCount,
|
|
|
+// "total": total,
|
|
|
+// "totalPage": (count + 1) / int64(pageSize),
|
|
|
+// "interceptOtherWord": a_word, //截取后 用于提示的关键词
|
|
|
+// "interceptKeyWords": b_word, //超出限制长度 截取后的关键词
|
|
|
+// "interceptLimit": util.IntAllDef(config.Sysconfig["keywordsLimit"], 35), //限制额度
|
|
|
+// "keywords": m.GetString("searchvalue"), //关键词
|
|
|
+// "heightWords": heightKeys, //需要高亮的关键词词组 主关键词和附加词合并
|
|
|
+// })
|
|
|
+//}
|
|
|
|
|
|
// PcAjaxReq_bak ajax分页请求 备份
|
|
|
func (m *Front) PcAjaxReq_Bak() {
|