Parcourir la source

Merge branch 'dev/v4.8.46_zxl' of qmx/jy into feature/v4.8.46

zhangxinlei1996 il y a 2 ans
Parent
commit
96e5bf45ef
1 fichiers modifiés avec 7 ajouts et 6 suppressions
  1. 7 6
      src/jfw/modules/app/src/app/front/tags.go

+ 7 - 6
src/jfw/modules/app/src/app/front/tags.go

@@ -1,10 +1,6 @@
 package front
 
 import (
-	qu "app.yhyue.com/moapp/jybase/common"
-	"app.yhyue.com/moapp/jybase/go-xweb/xweb"
-	"app.yhyue.com/moapp/jybase/redis"
-	"app.yhyue.com/moapp/jypkg/common/src/qfw/util/bidsearch"
 	"encoding/json"
 	"fmt"
 	"jy/src/jfw/modules/app/src/app/jyutil"
@@ -13,6 +9,11 @@ import (
 	"regexp"
 	"strconv"
 	"strings"
+
+	qu "app.yhyue.com/moapp/jybase/common"
+	"app.yhyue.com/moapp/jybase/go-xweb/xweb"
+	"app.yhyue.com/moapp/jybase/redis"
+	"app.yhyue.com/moapp/jypkg/common/src/qfw/util/bidsearch"
 )
 
 var (
@@ -303,8 +304,8 @@ onceAgain:
 		if biddingInfo.PageNum == (biddingInfo.Total-1)/biddingInfo.PageSize+1 {
 			nextPage = ""
 		}
-		tg.T["prevPage"] = qu.If(prevPage != "", fmt.Sprintf("/tags/%s/%s.html", types, prevPage), "").(string)
-		tg.T["nextPage"] = qu.If(nextPage != "", fmt.Sprintf("/tags/%s/%s.html", types, nextPage), "").(string)
+		tg.T["prevPage"] = qu.If(prevPage != "", fmt.Sprintf("/%s/%s/%s.html", first, types, prevPage), "").(string)
+		tg.T["nextPage"] = qu.If(nextPage != "", fmt.Sprintf("/%s/%s/%s.html", first, types, nextPage), "").(string)
 		tg.T["totalPage"] = (biddingInfo.Total-1)/biddingInfo.PageSize + 1
 		tg.T["pageNum"] = biddingInfo.PageNum
 		tg.T["hotArea"] = jyutil.HotAreas