|
@@ -107,6 +107,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
}
|
|
|
|
|
|
area := m.GetString("area")
|
|
|
+ district := m.GetString("district")
|
|
|
subtype := m.GetString("subtype")
|
|
|
toptype := m.GetString("toptype") //信息类型
|
|
|
publishtime := m.GetString("publishtime")
|
|
@@ -204,7 +205,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
}
|
|
|
if isLimit == 1 {
|
|
|
searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
- so := NewSearchOptimize(userId, phone, area, city, subtype, toptype, publishtime, strings.Join(queryItems, ","), fmt.Sprintf("%s-%s", minprice, maxprice), industry, buyerclass, hasBuyerTel, hasWinnerTel, fileExists, s_word, additionalWords, notkey, "PC", territorialization, currentPage, pageSize, searchGroup, searchMode, wordsMode, *userInfo, searchTypeSwitch, m.Request)
|
|
|
+ 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, currentPage, pageSize, searchGroup, searchMode, wordsMode, *userInfo, searchTypeSwitch, m.Request)
|
|
|
if so.PageNum < 0 && so.PageSize < 0 {
|
|
|
log.Printf("查询参数超出范围,有可能是异常请求; 用户id:%s;用户手机号:%s \n", userId, phone)
|
|
|
} else {
|
|
@@ -215,7 +216,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
}
|
|
|
} else {
|
|
|
searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
- so := NewSearchOptimize(userId, phone, area, city, subtype, toptype, publishtime, strings.Join(queryItems, ","), fmt.Sprintf("%s-%s", minprice, maxprice), industry, buyerclass, hasBuyerTel, hasWinnerTel, fileExists, s_word, additionalWords, notkey, "PC", territorialization, currentPage, pageSize, searchGroup, searchMode, wordsMode, *userInfo, searchTypeSwitch, m.Request)
|
|
|
+ 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, currentPage, pageSize, searchGroup, searchMode, wordsMode, *userInfo, searchTypeSwitch, m.Request)
|
|
|
list, count, total = so.GetBidSearchListByCache()
|
|
|
|
|
|
}
|