Browse Source

Merge branch 'release' into dev4.6.3.17

lianbingjie 3 năm trước cách đây
mục cha
commit
fcae9c7406

+ 5 - 2
config_formal/sword_172.17.145.167/config.json

@@ -296,7 +296,7 @@
 	"bindPopRedis":"merge",
 	"phoneFilterFlag":true,
 	"pcindexCacheTime":7200,
-        "pcIndexHotCacheTime":86400,
+        "pcIndexHotCacheTime":129600,
         "pcindexCacheKey":"jypcindex6",
         "dedupUrl":"http://10.170.187.34:891/data/deduplication",
         "bmwxrcoll":"drainage_wxreply_log",
@@ -305,5 +305,8 @@
         "pcSessionFlag":true,
 	"sessionTimeout":168,
 	"pcSessionTimeout":168,
-	"shareRedisName":"other"
+	"shareRedisName":"other",
+	 "criticality":70,
+        "indexcontentTimeOut":86400,
+        "seoBeforeTimeHour":2160
 }

+ 1 - 1
config_formal/sword_172.17.145.167/seo.json

@@ -445,7 +445,7 @@
 			}
 	},
 	"jyadd":"http://www.qmx.top",
-	"limitcount":50,
+	"limitcount":10,
 	"ZBADDRESS":"https://www.jianyu360.cn",
 	"jysy":"10",
 	"jydyy":"11",

+ 1 - 1
config_formal/sword_172.17.145.167/time.txt

@@ -1,2 +1,2 @@
 #上次修改时间,比当前修改时间小就行
-2022-2-15 11:00:00
+2022-2-16 11:00:00

+ 5 - 2
config_formal/sword_172.17.148.50/config.json

@@ -295,7 +295,7 @@
 	"bindPopRedis":"merge",
 	"phoneFilterFlag":true,
 	"pcindexCacheTime":7200,
-        "pcIndexHotCacheTime":86400,
+        "pcIndexHotCacheTime":129600,
         "pcindexCacheKey":"jypcindex6",
         "dedupUrl":"http://10.170.187.34:891/data/deduplication",
         "bmwxrcoll":"drainage_wxreply_log",
@@ -304,5 +304,8 @@
         "pcSessionFlag":true,
 	"sessionTimeout":168,
 	"pcSessionTimeout":168,
-	"shareRedisName":"other"
+	"shareRedisName":"other",
+	 "criticality":70,
+        "indexcontentTimeOut":86400,
+        "seoBeforeTimeHour":2160
 }

+ 1 - 1
config_formal/sword_172.17.148.50/seo.json

@@ -445,7 +445,7 @@
 			}
 	},
 	"jyadd":"http://www.qmx.top",
-	"limitcount":50,
+	"limitcount":10,
 	"ZBADDRESS":"https://www.jianyu360.com",
 	"jysy":"10",
 	"jydyy":"11",

+ 1 - 1
config_formal/sword_172.17.148.50/time.txt

@@ -1,2 +1,2 @@
 #上次修改时间,比当前修改时间小就行
-2022-2-15 11:00:00
+2022-2-16 11:00:00

+ 7 - 4
src/config.json

@@ -240,7 +240,7 @@
         "shareTimesUpperLimitR": 4000,
         "shareTimesUpperLimitIrr": 1000
     },
-    "cookiedomain": "wcj.jydev.jianyu360.com",
+    "cookiedomain": ".jydev.jianyu360.com",
     "pcHelper": {
         "subscribeTokenTimeout": 15,
         "version": "V2.5.1"
@@ -283,7 +283,7 @@
     },
     "getpicurl": "https://res.jianyu360.com/",
     "sealSendTime": 14400,
-    "appPushServiceRpc": "127.0.0.1:5566",
+    "appPushServiceRpc": "192.168.20.139:5566",
     "openPlatformUrl": "https://open-jytest.jianyu360.cn/",
     "sessionEnctryFlushCorn": "0 0 0 1 * ?",
     "PCS_time":24,
@@ -299,7 +299,7 @@
     "bindPopRedis":"merge",
     "phoneFilterFlag":true,
     "pcindexCacheTime":7200,
-    "pcIndexHotCacheTime":7200,
+    "pcIndexHotCacheTime":129600,
     "pcindexCacheKey":"jypcindex2",
     "dedupUrl":  "http://127.0.0.1:8888/data/deduplication",
     "bmwxrcoll":"drainage_wxreply_log",
@@ -308,5 +308,8 @@
     "pcSessionFlag":true,
     "sessionTimeout":168,
     "pcSessionTimeout":168,
-    "shareRedisName":"other"
+    "shareRedisName":"other",
+    "criticality":2,
+    "indexcontentTimeOut":86400,
+    "seoBeforeTimeHour":12160
 }

+ 134 - 2
src/jfw/front/pcIndex.go

@@ -7,6 +7,7 @@ import (
 	"jfw/jylabutil"
 	"jfw/public"
 	"jfw/wx"
+	"log"
 	"math/rand"
 	"qfw/util"
 	"qfw/util/bidsearch"
@@ -365,6 +366,7 @@ func (f *PcIndex) SearchResult(at, name string) error {
 		return f.Redirect("/swordfish/searchinfolist.html")
 	}
 	if area != "" || stype != "" || industry != "" || city != "" || keywords != "" {
+		//
 		list := redis.Get("other", "classify_"+name)
 		query1 := `{"query": {"bool": {"must":[`
 		if area != "" {
@@ -386,7 +388,36 @@ func (f *PcIndex) SearchResult(at, name string) error {
 			query1 += `{"term":{"city":"` + city + `"}}`
 		}
 		query1 += `],"should": [],"minimum_should_match": 0}}}`
+		//获取到昨天数据
+		// ct := SeoDateCount(area, stype, industry, city, keywords, key_industry)
+		// publishtime := ""
+		// if ct < 100 {
+		// 	limitcount = 20
+		// 	start, _ := time.ParseInLocation(util.Date_Short_Layout, time.Now().Format(util.Date_Short_Layout), time.Local)
+		// 	st := start.Unix()
+		// 	et := start.AddDate(0, 0, -7).Unix()
+		// 	publishtime = fmt.Sprintf("%v_%v", et, st)
+		// } else if ct >= 100 && ct < 500 {
+		// 	limitcount = 50
+		// 	start, _ := time.ParseInLocation(util.Date_Short_Layout, time.Now().Format(util.Date_Short_Layout), time.Local)
+		// 	st := start.Unix()
+		// 	et := start.AddDate(0, 0, -3).Unix()
+		// 	publishtime = fmt.Sprintf("%v_%v", et, st)
+		// } else if ct >= 500 && ct < 1500 {
+		// 	limitcount = 50
+		// 	start, _ := time.ParseInLocation(util.Date_Short_Layout, time.Now().Format(util.Date_Short_Layout), time.Local)
+		// 	st := start.Unix()
+		// 	et := start.AddDate(0, 0, 1).Unix()
+		// 	publishtime = fmt.Sprintf("%v_%v", st, et)
+		// } else if ct >= 1500 {
+		// 	limitcount = 100
+		// 	start, _ := time.ParseInLocation(util.Date_Short_Layout, time.Now().Format(util.Date_Short_Layout), time.Local)
+		// 	st := start.Unix()
+		// 	et := start.AddDate(0, 0, 1).Unix()
+		// 	publishtime = fmt.Sprintf("%v_%v", st, et)
+		// }
 		query := getLastNewsQuery(area, "", stype, industry, city)
+
 		var datas *[]map[string]interface{}
 		if list == nil || len(list.([]interface{})) == 0 {
 			if keywords == "" {
@@ -399,12 +430,23 @@ func (f *PcIndex) SearchResult(at, name string) error {
 					startPage = 0
 				}
 				datas = elastic.GetPage(INDEX, TYPE, query, bidSearch_sort, `"_id","title","publishtime","toptype","subtype","type","area","href","bidopentime","winner","buyer","bidamount","budget","s_subscopeclass","projectname"`, startPage, limitcount)
+				log.Println(len(*datas), "=====", limitcount)
+				// // log.Println("datas:", *datas)
+				// if datas == nil || len(*datas) == 0 {
+				//datas = elastic.GetPage(INDEX, TYPE, getLastNewsQuery(area, "", stype, industry, city), bidSearch_sort, `"_id","title","publishtime","toptype","subtype","type","area","href","bidopentime","winner","buyer","bidamount","budget","s_subscopeclass","projectname"`, startPage, limitcount)
+				// }
+
 			} else {
-				//关键词
-				_, _, datas = bidsearch.GetPcBidSearchData(keywords, "", "", "", key_industry, "", "", "", "", "", "", 0, bidsearch.SearchPageSize_PC, false, nil, bidSearch_field_1, "", false)
+				//关键词  如果规定时间内未取到数据 则按照老规则取数据   //规则开发一半被砍 暂时注释
+				// _, _, datas = bidsearch.GetPcBidSearchData(keywords, "", publishtime, "", key_industry, "", "", "", "", "", "", 0, bidsearch.SearchPageSize_PC, true, nil, bidSearch_field_1, "", false)
+				// if datas != nil && len(*datas) > limitcount {
+				// 	*datas = (*datas)[0:limitcount]
+				// } else {
+				_, _, datas = bidsearch.GetPcBidSearchData(keywords, "", "", "", key_industry, "", "", "", "", "", "", 0, bidsearch.SearchPageSize_PC, true, nil, bidSearch_field_1, "", false)
 				if datas != nil && len(*datas) > limitcount {
 					*datas = (*datas)[0:limitcount]
 				}
+				// }
 			}
 			if datas != nil && len(*datas) > 0 {
 				for _, v := range *datas {
@@ -422,6 +464,7 @@ func (f *PcIndex) SearchResult(at, name string) error {
 			public.BidListConvert(industry, datas)
 			res = searchresulthtml(datas)
 		}
+		InSeoContent(datas)
 		f.T["res"] = res
 		f.T["area"] = area
 		f.T["stype"] = stype
@@ -573,3 +616,92 @@ func NumberFormat(i int) string {
 	}
 	return strings.Join(arr, ".") //将一系列字符串连接为一个字符串,之间用sep来分隔。
 }
+
+/*	判断是否入库
+	单独存一张表 用于记录是否是已保存过seo数据
+*/
+func InSeoContent(arr *[]map[string]interface{}) {
+	for _, v := range *arr {
+		bid := util.CommonDecodeArticle("indexcontent", util.ObjToString(v["_id"]))[0]
+		if data, ok := mongodb.FindOne("seobidding", map[string]interface{}{"bid": bid}); ok && len(*data) > 0 {
+			continue
+		}
+		id := mongodb.Save("seobidding", map[string]interface{}{
+			"bid":        bid,
+			"createtime": time.Now().Unix(),
+		})
+		if id == "" {
+			log.Printf("%v保存失败", bid)
+		}
+	}
+}
+
+/*
+//分段    <100条      取最近7天20条
+//分段	   100~500     最近3天50条
+//分段    500~1500    当天50条
+//       1500+       当天100条
+
+func SeoDateCount(area, stype, industry, city, keywords, key_industry string) int {
+	query1 := `{"query": {"bool": {"must":[`
+	if area != "" {
+		query1 += `{"term":{"area":"` + area + `"}}`
+	} else if stype != "" {
+		stype = getstype(stype)
+		query1 += `{"terms":{"subtype":[`
+		for k, v := range strings.Split(stype, ",") {
+			if k > 0 {
+				query1 += `,`
+			}
+			query1 += `"` + v + `"`
+		}
+		query1 += `]}}`
+		// query1 += `{"term":{"subtype":"` + stype + `"}}`
+	} else if industry != "" {
+		query1 += `{"term":{"industry":"` + industry + `"}}`
+	} else if city != "" {
+		query1 += `{"term":{"city":"` + city + `"}}`
+	} else {
+		if keywords == "" {
+			return 0
+		}
+	}
+	//time
+	st, _ := time.ParseInLocation(util.Date_Short_Layout, util.NowFormat(util.Date_Short_Layout), time.Local)
+	st_unix := st.Unix()
+	et := time.Now()
+	et_unix := time.Date(et.Year(), et.Month(), et.Day()+1, 0, 0, 0, 0, time.Local).Unix()
+	query := getLastNewsQuery(area, fmt.Sprintf("%v_%v", st_unix, et_unix), stype, industry, city)
+	query1 += `,{"range": { "publishtime": { "from": "` + fmt.Sprint(st_unix) + `",  "to": "` + fmt.Sprint(et_unix) + `"  } }}`
+	query1 += `],"should": [],"minimum_should_match": 0}}}`
+
+	log.Println("query:", query)
+	log.Println("query1:", query1)
+
+	if keywords == "" {
+		count := elastic.Count(INDEX, TYPE, query1)
+		return int(count)
+	} else {
+		//关键词
+		publictimes := fmt.Sprintf("%v_%v", st.Unix(), et.Unix())
+		_, _, datas := bidsearch.GetPcBidSearchData(keywords, "", publictimes, "", key_industry, "", "", "", "", "", "", 0, bidsearch.SearchPageSize_PC, false, nil, bidSearch_field_1, "", false)
+		if datas != nil {
+			return len(*datas)
+		} else {
+			return 0
+		}
+		//count (searchvalue, area, publishtime, subtype, industry, minprice, maxprice, winner, buyerclass, hasBuyerTel, hasWinnerTel string, start, pageSize int, isGetCount bool, selectTypeArr []string, field, notkey string, ispayed bool)
+		qstr := bidsearch.GetSearchQuery(keywords, "", publictimes, "", "", "", bidSearch_field_1, bidsearch.GetBidSearchQuery("", publictimes, "", "", ""), "")
+		if qstr != "" {
+			count := elastic.Count(INDEX, TYPE, qstr)
+			return int(count)
+		}
+	}
+	return 0
+}
+
+func (f *PcIndex) Count() {
+
+}
+
+*/

+ 59 - 4
src/jfw/front/shorturl.go

@@ -44,6 +44,7 @@ var Map_stype = map[string]bool{
 }
 
 func (s *Short) Article(stype, id string) error {
+
 	//先判断是否有session
 	source := s.GetString("source")
 	disWord := s.GetString("disWord")
@@ -220,12 +221,16 @@ func (s *Short) Article(stype, id string) error {
 		}
 	} else {
 		sids := util.CommonDecodeArticle(stype, id)
-		if len(sids) == 0 {
+		log.Println(sids)
+		if len(sids) == 0 || (len(sids) > 0 && sids[0] == "") {
 			s.Redirect("/notin/page", 302)
 			return nil
 		}
 		sid := sids[0]
-		catchKey := fmt.Sprintf("jypcdetail_%s_%v_%v_%v", sid, isVip, isEntniche, isMember)
+		if userId != "" && stype == "indexcontent" { //已登录用户直接跳转至正常三级页
+			return s.Redirect(fmt.Sprintf("/article/content/%s.html", util.CommonEncodeArticle("content", sid)))
+		}
+		catchKey := fmt.Sprintf("jypcdetail_%s_%s_%v_%v_%v", stype, sid, isVip, isEntniche, isMember)
 		//缓存读取
 		if res := redis.Get("other", catchKey); res == nil || res == "" {
 			industry := s.GetString("industry")
@@ -249,16 +254,66 @@ func (s *Short) Article(stype, id string) error {
 				if len(wo) > 0 {
 					s.T["winnerOther"] = wo
 				}
-
+				obj["urlpath"] = s.Uri()
+				obj["industry"] = industry
+				if ssOpenid != nil {
+					obj["ucbsId"] = util.EncodeArticleId2ByCheck("ucbs#" + ssOpenid.(string) + "#" + id)
+				}
+				if obj["winnertel"] == nil && isbid(obj["subtype"]) {
+					obj["winner_enttel"] = getwinnertel(obj["winner"])
+				}
+				if !(isVip || isMember || isEntniche) { //非会员不展示电话字段
+					if obj["winnertel"] != nil {
+						obj["winnertel"] = "无权限"
+					}
+					if obj["winner_enttel"] != "" {
+						obj["winner_enttel"] = "无权限"
+					}
+				}
+				//判断时间 //如果是seo页面超过时间访问的进入首页
+				comeinTime := time.Unix(util.Int64All(obj["comeintime"]), 0)
+				if stype == "indexcontent" {
+					if count := public.MQFW.Count("seobidding", map[string]interface{}{"bid": sid}); count <= 0 && comeinTime.Before(time.Now().Add(time.Duration(-util.IntAll(config.Sysconfig["seoBeforeTimeHour"]))*time.Hour)) {
+						return s.Redirect("/")
+					}
+				}
 				FieldProcessing(obj, ssOpenid, industry, id, from_userid, userId, stype, isVip || isMember || isEntniche, false)
+
 				s.T["obj"] = obj
 				if obj["projectname"] != nil {
 					s.SetSession("projectname", obj["projectname"])
 				}
+				if obj["entidlist"] != nil { //大会员中标企业跳转至画像
+					winner := util.ObjToString(obj["winner"])
+					s_winner := util.ObjToString(obj["s_winner"])
+					idObjs, _ := obj["entidlist"].([]interface{})
+					winnerId := ""
+					if names := strings.Split(s_winner, ","); len(names) > 1 {
+						index := 0
+						for i := 0; i < len(names); i++ {
+							if names[i] == winner {
+								index = i
+								break
+							}
+						}
+						if len(idObjs) > index {
+							winnerId = util.ObjToString(idObjs[index])
+						}
+					} else { //中标企业仅一个
+						if len(idObjs) > 0 {
+							winnerId = util.ObjToString(idObjs[0])
+						}
+					}
+					if winnerId != "" {
+						obj["entId"] = util.EncodeArticleId2ByCheck(winnerId)
+					}
+				}
+				s.T["url"] = s.Uri()
+
 				content, _ := s.Render4Cache("/pc/biddetail_rec.html", &s.T)
 				timeout := 60 * 20
 				if stype == "indexcontent" {
-					timeout = 60 * 10
+					timeout = util.IntAllDef(config.Sysconfig["indexcontentTimeOut"], 86400)
 				}
 				redis.Put("other", catchKey, string(content), timeout)
 				return s.SetBody(content)

+ 8 - 4
src/jfw/front/supsearch.go

@@ -245,7 +245,9 @@ func (p *Pcsearch) PcSearchIndex() error {
 	subtype := p.GetString("subtype")                      //信息类型
 	minprice := p.GetString("minprice")                    //最低价格
 	maxprice := p.GetString("maxprice")                    //最高价格
-
+	if publishtime == "" {
+		publishtime = "thisyear"
+	}
 	userId, _ := p.GetSession("userId").(string)
 
 	//高级筛选 仅vip用户可查询
@@ -291,21 +293,23 @@ func (p *Pcsearch) PcSearchIndex() error {
 	secondKWS := ""
 	if len(s_word) > 0 || len(industry) > 0 {
 		status = 2
-		_, _, _, _, secondFlag, count, totalPage, list = bidsearch.SearchData("pc", p.Request, 1, util.ObjToString(p.GetSession("userId")), secondKWS, s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, bidsearch.SearchPageSize_PC, true, queryItems, bidSearch_field_1, notkey, isPayedUser)
+		secondKWS, _, _, _, secondFlag, count, totalPage, list = bidsearch.SearchData("pc", p.Request, 1, util.ObjToString(p.GetSession("userId")), secondKWS, s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, bidsearch.SearchPageSize_PC, true, queryItems, bidSearch_field_1, notkey, isPayedUser)
 	} else {
 		p.DisableHttpCache()
 		p.T["list"] = PCS_list("") //Newbids("")[0]
 		count, totalPage = 500, 10
 	}
 	if status == 2 {
-		secondList, tp, _ := bidsearch.LisetData(1, 0, list, secondFlag, config.Sysconfig, isPayedUser)
+		secondList, tp, _ := bidsearch.LisetData(1, 0, list, secondFlag, config.Seoconfig, isPayedUser)
 		if tp == 1 {
 			p.T["secondList"] = ""
 			totalPage = 1
 		} else if len(secondList) > 0 {
 			p.T["secondList"] = secondList
 		}
-
+		if secondKWS != "" {
+			s_word = s_word + "+" + secondKWS
+		}
 		p.T["list"] = list
 		p.T["secondFlag"] = secondFlag
 		p.T["area"] = area

+ 2 - 2
src/jfw/front/swordfish.go

@@ -150,7 +150,7 @@ func (m *Front) PcAjaxReq() {
 			_, _, _, pcAjaxFlag, secondFlag, count, totalPage, list = bidsearch.SearchData("pc", m.Request, currentPage, util.ObjToString(m.GetSession("userId")), secondKWS, s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, start, bidsearch.SearchPageSize_PC, true, queryItems, field, notkey, isPayedUser)
 		}
 	}
-	secondList, totalPage, _ = bidsearch.LisetData(1, currentPage, list, secondFlag, config.Sysconfig, isPayedUser) //只有前20条
+	secondList, totalPage, _ = bidsearch.LisetData(1, currentPage, list, secondFlag, config.Seoconfig, isPayedUser) //只有前20条
 	m.ServeJson(map[string]interface{}{
 		"limitFlag":     false,
 		"status":        isLimit,
@@ -389,7 +389,7 @@ func (m *Front) WxsearchlistPaging() {
 		}
 	}()
 	//同app  避免二次加密
-	secondList, _, hasNextPage = bidsearch.LisetData(4, pageNum, list, secondFlag, config.Sysconfig, isPayedUser)
+	secondList, _, hasNextPage = bidsearch.LisetData(4, pageNum, list, secondFlag, config.Seoconfig, isPayedUser)
 	m.ServeJson(map[string]interface{}{
 		"limitFlag":     limitFlag,
 		"status":        isLimit,

+ 1 - 1
src/jfw/modules/app/src/app/front/swordfish.go

@@ -283,7 +283,7 @@ func (m *Front) WxsearchlistPaging() {
 		}
 	}
 
-	secondList, _, hasNextPage = bidsearch.LisetData(3, pageNum, list, secondFlag, config.Sysconfig, isPayedUser)
+	secondList, _, hasNextPage = bidsearch.LisetData(3, pageNum, list, secondFlag, config.Seoconfig, isPayedUser)
 	m.ServeJson(map[string]interface{}{
 		"limitFlag":     false,
 		"status":        isLimit,

+ 7 - 7
src/jfw/modules/common/src/qfw/util/bidsearch/search.go

@@ -307,9 +307,10 @@ func PublicSearch(userId, selectType, publishtime string, bidSearchOldUserLimit
 }
 
 //所有的再次分词查询 只查标题
-func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey string, queryItems []string, list *[]map[string]interface{}) (string, string, string, string) {
+func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey string, queryItems []string, list *[]map[string]interface{}) (string, string, string, string, *[]map[string]interface{}) {
 	var pcAjaxFlag string
 	secondSearch := false
+	var secRel *[]map[string]interface{}
 	for _, item := range queryItems {
 		if item == "title" {
 			secondSearch = true
@@ -320,7 +321,7 @@ func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxp
 		secondKWS = jy.HttpEs(s_word, "ik_smart", public.DbConf.Elasticsearch.Main.Address)
 		findfields := `"title"`
 		qstr := GetSearchQuery(secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, findfields, GetBidSearchQuery(area, publishtime, subtype, "", buyerclass), notkey)
-		secRel := elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSearch_sort, bidSearch_field, 0, 2*SearchPageSize_PC, 0, false)
+		secRel = elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSearch_sort, bidSearch_field, 0, 2*SearchPageSize_PC, 0, false)
 		if secRel != nil && len(*secRel) > 0 {
 			public.BidListConvert(industry, secRel)
 			if platform == "app" || platform == "wx" {
@@ -330,9 +331,7 @@ func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxp
 			}
 		}
 		if list != nil {
-			list = public.MapArrSortMerge(*list, *secRel, "_id", "publishtime")
-		} else {
-			list = secRel
+			secRel = public.MapArrSortMerge(*list, *secRel, "_id", "publishtime")
 		}
 		secondFlag = "T"
 		pcAjaxFlag = "T"
@@ -340,7 +339,7 @@ func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxp
 			s_word += "+" + secondKWS
 		}
 	}
-	return s_word, pcAjaxFlag, secondFlag, secondKWS
+	return s_word, pcAjaxFlag, secondFlag, secondKWS, secRel
 }
 
 func classify(stp, area, industry string, configData map[string]interface{}) (string, string, string) {
@@ -446,7 +445,8 @@ func SearchData(platform string, request *http.Request, currentPage int, userId,
 		listSize = len(*list)
 	}
 	if len([]rune(s_word)) > 3 && int(count) < SearchPageSize_PC && start == number {
-		s_word, pcAjaxFlag, secondFlag, second = IntegratedData(platform, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey, queryItems, list)
+		var paramList *[]map[string]interface{} = list
+		s_word, pcAjaxFlag, secondFlag, second, list = IntegratedData(platform, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey, queryItems, paramList)
 	}
 	public.SaveUserSearchLog(request, userId, -1, platform, "超级搜索", map[string]interface{}{
 		"search_word":        util.If(platform == "app" || platform == "wx", searchvalue, s_word),

+ 1 - 1
src/seo.json

@@ -491,7 +491,7 @@
         }
     },
     "jyadd": "https://web-qmxtest.jydev.jianyu360.com/",
-    "limitcount": 20,
+    "limitcount": 10,
     "ZBADDRESS": "",
     "jysy": "10",
     "jydyy": "11",

+ 5 - 1
src/web/templates/pc/supsearch.html

@@ -2249,7 +2249,11 @@ document.querySelector(".searchControl").oncopy = function(){
               $(".tabContainer").show();
               $(".hasNoData").hide();
               //$(".nbnext").addClass("disabled");
-              appendDatas(list,true,false);
+              if (currentPage==2){
+                appendDatas(secondList,true,false);
+              }else{
+                appendDatas(list,true,false);
+              }
             }else if(!nbflag&&currentPage>0){
               getNewBiddings();
             }else{