()
| 10 | } |
| 11 | |
| 12 | func (this *CateController) Index() { |
| 13 | cid, _ := this.GetInt("cid") |
| 14 | if cid > 0 { |
| 15 | this.Redirect(beego.URLFor("HomeController.Index")+this.Ctx.Request.RequestURI, 302) |
| 16 | return |
| 17 | } |
| 18 | defaultHomePage := models.GetOptionValue("DEFAULT_HOME_PAGE", "/") |
| 19 | if !(defaultHomePage == "" || defaultHomePage == "/") { |
| 20 | this.Redirect(defaultHomePage, 302) |
| 21 | return |
| 22 | } |
| 23 | this.List() |
| 24 | } |
| 25 | |
| 26 | //分类 |
| 27 | func (this *CateController) List() { |
nothing calls this directly
no test coverage detected