|
@@ -160,27 +160,14 @@ func (m *Front) PcAjaxReq() {
|
|
|
} else if reqType == "bidSearch" {
|
|
|
//全文检索限制
|
|
|
if searchLimit {
|
|
|
- limitFlag = public.Lst.Flag
|
|
|
+ //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 {
|
|
|
- if limitFlag {
|
|
|
- if start == 0 {
|
|
|
- limit_count := public.Lst.TotalPage * bidsearch.SearchPageSize_PC
|
|
|
- count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, limit_count, true, queryItems, field, notkey, isPayedUser)
|
|
|
- if totalPage > int64(public.Lst.TotalPage) {
|
|
|
- totalPage = int64(public.Lst.TotalPage)
|
|
|
- }
|
|
|
- if count > int64(limit_count) {
|
|
|
- count = int64(limit_count)
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, start, bidsearch.SearchPageSize_PC, true, queryItems, field, notkey, isPayedUser)
|
|
|
- }
|
|
|
+ count, totalPage, list = bidsearch.GetPcBidSearchData(s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, start, bidsearch.SearchPageSize_PC, true, queryItems, field, notkey, isPayedUser)
|
|
|
listSize := 0
|
|
|
if list != nil {
|
|
|
listSize = len(*list)
|
|
@@ -480,20 +467,14 @@ func (m *Front) WxsearchlistPaging() {
|
|
|
//全文检索限制
|
|
|
searchLimit := public.IsSearchLimit(queryItems)
|
|
|
if searchLimit {
|
|
|
- limitFlag = public.Lst.Flag
|
|
|
+ //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 {
|
|
|
- if limitFlag {
|
|
|
- if pageNum == 1 {
|
|
|
- list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, public.Lst.TotalPage*bidsearch.SearchPageSize_WX, queryItems, filed, notkey)
|
|
|
- }
|
|
|
- } else {
|
|
|
- list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, bidsearch.SearchPageSize_WX, queryItems, filed, notkey)
|
|
|
- }
|
|
|
+ list, b_word, a_word, s_word = bidsearch.GetWxsearchlistData(searchvalue, scope, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, pageNum, bidsearch.SearchPageSize_WX, queryItems, filed, notkey)
|
|
|
listSize := 0
|
|
|
if list != nil {
|
|
|
listSize = len(*list)
|
|
@@ -568,8 +549,6 @@ func (m *Front) WxsearchlistPaging() {
|
|
|
hasNextPage = false
|
|
|
} else if !isPayedUser && pageNum >= bidsearch.SearchMaxPageNum_WX {
|
|
|
hasNextPage = false
|
|
|
- } else if limitFlag {
|
|
|
- hasNextPage = false
|
|
|
}
|
|
|
}
|
|
|
if one != nil && len(*one) > 0 {
|