|
@@ -649,7 +649,7 @@ func (this *Tags) GetBidding(industry, area, city, stype, keyword string, reques
|
|
|
var datas *[]map[string]interface{}
|
|
|
var startPage int
|
|
|
currentPage := 5
|
|
|
- limitcount := 50
|
|
|
+ limitcount := qu.IntAllDef(config.Seoconfig["tagsLimitCount"], 50)
|
|
|
count := elastic.Count(INDEX, TYPE, query1)
|
|
|
if keyword == "" {
|
|
|
r := rand.New(rand.NewSource(time.Now().UnixNano()))
|
|
@@ -661,7 +661,7 @@ func (this *Tags) GetBidding(industry, area, city, stype, keyword string, reques
|
|
|
datas = elastic.GetPage(INDEX, TYPE, query, bidSearch_sort, bidField, startPage, limitcount)
|
|
|
} else {
|
|
|
log.Println(keyword, area, city, industry)
|
|
|
- _, _, datas = bidsearch.GetPcBidSearchData(keyword, area, city, "", stype, industry, "", "", "", "", "", "", "", 0, true, []string{"title", "detail"}, bidField, "", false, false, "", 50, "")
|
|
|
+ _, _, datas = bidsearch.GetPcBidSearchData(keyword, area, city, "", stype, industry, "", "", "", "", "", "", "", 0, true, []string{"title", "detail"}, bidField, "", false, false, "", limitcount, "")
|
|
|
|
|
|
if datas != nil && len(*datas) > limitcount {
|
|
|
*datas = (*datas)[0:limitcount]
|