|
@@ -10,9 +10,6 @@ import (
|
|
|
type CommonRouter struct {
|
|
|
*xweb.Action
|
|
|
appCommonPage xweb.Mapper `xweb:"/jyapp/frontPage/(.*)/(sess|free)/(.*)"` //新的历时推送记录
|
|
|
-
|
|
|
- integralPage xweb.Mapper `xweb:"/jyapp/integral/(.*)"` //积分页面路由
|
|
|
- docsPage xweb.Mapper `xweb:"/jyapp/docs/(.*)"` //文库页面路由
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
@@ -27,17 +24,3 @@ func (this *CommonRouter) AppCommonPage(folder, loginSign, htmlPage string) erro
|
|
|
}
|
|
|
return this.Render(fmt.Sprintf("/frontRouter/%s/%s/%s.html", folder, loginSign, htmlPage))
|
|
|
}
|
|
|
-
|
|
|
-//积分
|
|
|
-func (this *CommonRouter) IntegralPage(htmlPage string) error {
|
|
|
- userid, _ := this.GetSession("userId").(string)
|
|
|
- if userid == "" {
|
|
|
- return this.Redirect("/jyapp/swordfish/about")
|
|
|
- }
|
|
|
- return this.Render(fmt.Sprintf("/frontRouter/integral/sess/%s.html", htmlPage))
|
|
|
-}
|
|
|
-
|
|
|
-//文库
|
|
|
-func (this *CommonRouter) DocsPage(htmlPage string) error {
|
|
|
- return this.Render(fmt.Sprintf("/frontRouter/docs/free/%s.html", htmlPage))
|
|
|
-}
|