123456789101112131415161718192021222324252627282930313233 |
- package controller
- import (
- "github.com/gogf/gf/v2/net/ghttp"
- )
- //var mobileReg = regexp.MustCompile("(?i)(Android|Mobile|Phone)")
- func ListPage(r *ghttp.Request) {
- //module := r.Get("module").String()
- //param := r.Get("param").String()
- //
- //switch module {
- //case "area":
- // areamp, _ := config.Seoconfig["area"].(map[string]interface{})
- // if areamp != nil {
- // areamp1 := areamp[name].(map[string]interface{})
- // if areamp1 != nil {
- // area = areamp1["NAME"].(string)
- // seotitle = areamp1["TITLE"].(string)
- // seokeywords = areamp1["KEYWORDS"].(string)
- // seodescription = areamp1["DESCRIPTION"].(string)
- // }
- // }
- //}
- //
- //node := service.JyCmsAreaRoot.GetAreaNodeByCode(alias)
- //if node == nil {
- // service.HtmlRender.RenderError(r, fmt.Errorf("页面不存在"))
- // return
- //}
- //service.HtmlRender.Render(r, "default/city.html", g.Map{"areaCode": node.Code, "node": node})
- }
|