|
@@ -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":[`
|