list.go 920 B

123456789101112131415161718192021222324252627282930313233
  1. package controller
  2. import (
  3. "github.com/gogf/gf/v2/net/ghttp"
  4. )
  5. //var mobileReg = regexp.MustCompile("(?i)(Android|Mobile|Phone)")
  6. func ListPage(r *ghttp.Request) {
  7. //module := r.Get("module").String()
  8. //param := r.Get("param").String()
  9. //
  10. //switch module {
  11. //case "area":
  12. // areamp, _ := config.Seoconfig["area"].(map[string]interface{})
  13. // if areamp != nil {
  14. // areamp1 := areamp[name].(map[string]interface{})
  15. // if areamp1 != nil {
  16. // area = areamp1["NAME"].(string)
  17. // seotitle = areamp1["TITLE"].(string)
  18. // seokeywords = areamp1["KEYWORDS"].(string)
  19. // seodescription = areamp1["DESCRIPTION"].(string)
  20. // }
  21. // }
  22. //}
  23. //
  24. //node := service.JyCmsAreaRoot.GetAreaNodeByCode(alias)
  25. //if node == nil {
  26. // service.HtmlRender.RenderError(r, fmt.Errorf("页面不存在"))
  27. // return
  28. //}
  29. //service.HtmlRender.Render(r, "default/city.html", g.Map{"areaCode": node.Code, "node": node})
  30. }