站点地图
()
| 306 | |
| 307 | // 站点地图 |
| 308 | func (this *BaseController) Sitemap() { |
| 309 | this.Data["SeoTitle"] = "站点地图 - " + this.Sitename |
| 310 | page, _ := this.GetInt("page") |
| 311 | listRows := 100 |
| 312 | totalCount, docs := models.SitemapData(page, listRows) |
| 313 | if totalCount > 0 { |
| 314 | html := utils.GetPagerHtml(this.Ctx.Request.RequestURI, page, listRows, int(totalCount)) |
| 315 | this.Data["PageHtml"] = html |
| 316 | } else { |
| 317 | this.Data["PageHtml"] = "" |
| 318 | } |
| 319 | //this.JsonResult(0, "aaa", docs) |
| 320 | this.Data["Docs"] = docs |
| 321 | this.TplName = "widgets/sitemap.html" |
| 322 | } |
| 323 | |
| 324 | func (this *BaseController) loginByMemberId(memberId int) (err error) { |
| 325 | member, err := models.NewMember().Find(memberId) |
nothing calls this directly
no test coverage detected