wangshan 4 năm trước cách đây
mục cha
commit
c6dd9185e5
2 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 8 0
      src/jfw/front/frontRouter.go
  2. 1 0
      src/seo.json

+ 8 - 0
src/jfw/front/frontRouter.go

@@ -65,6 +65,11 @@ func (this *CommonRouter) WxCommonPage(folder, loginSign, htmlPage string) error
 }
 
 func (this *CommonRouter) PcCommonPage(folder, loginSign, htmlPage string) error {
+	var shareid = this.GetString("id")
+	if len(shareid) == 0 {
+		shareid = "10"
+	}
+	this.T["shareid"] = se.EncodeString(shareid)
 	if loginSign != "free" {
 		if userid, _ := this.GetSession("userId").(string); userid == "" {
 			var shareid = this.GetString("id")
@@ -77,6 +82,9 @@ func (this *CommonRouter) PcCommonPage(folder, loginSign, htmlPage string) error
 			// return this.Redirect("/notin/page")
 		}
 	}
+	if folder == "collection" {
+		this.T["logid"] = config.Seoconfig["collection"].(string)
+	}
 	return this.Render(fmt.Sprintf("/frontRouter/pc/%s/%s/%s.html", folder, loginSign, htmlPage))
 }
 

+ 1 - 0
src/seo.json

@@ -505,6 +505,7 @@
     "course": "25",
     "wjmm": "26",
     "bigmember": "27",
+    "collection": "28",
     "module": {
         "subscribe": "订阅页",
         "/list/": "标签页",