Browse Source

feat:删除无用代码

zhangxinlei1996 2 years ago
parent
commit
65a8858679
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/jfw/front/tags.go

+ 7 - 7
src/jfw/front/tags.go

@@ -236,8 +236,8 @@ func (this *Tags) Index(types, name string) {
 		isLimit := false
 		this.T["biddingList"], this.T["biddingCount"], isLimit = this.GetBidding(checkedIndustry, checkedProvince, checkedCity, InfoType, checkedKeywords, this.Request, this.ResponseWriter, this.Session())
 		if isLimit {
-			// this.Redirect("/504.html")
-			// return
+			this.Redirect("/504.html")
+			return
 		}
 		filters["biddingCount"] = this.T["biddingCount"]
 		if qu.Int64All(this.T["biddingCount"]) == 0 && types == "letter" {
@@ -606,11 +606,11 @@ func (this *Tags) GetBidding(industry, area, city, stype, keyword string, reques
 		return qu.ObjArrToMapArr(l), int64(count), false
 	} else {
 		if area != "" || stype != "" || industry != "" || city != "" || keyword != "" {
-			// if public.Lst.IsLimited(request, responseWriter, session, false) == 1 { //没有被限制
-			// 	defer public.Lst.Limit()
-			// } else {
-			// 	return nil, 0, true
-			// }
+			if public.Lst.IsLimited(request, responseWriter, session, false) == 1 { //没有被限制
+				defer public.Lst.Limit()
+			} else {
+				return nil, 0, true
+			}
 			//
 			query1 := `{"query": {"bool": {"must":[`
 			query_start := `{"query": {"bool": {"must":[`