|
@@ -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))
|
|
|
}
|
|
|
|