优化企业网站功能

This commit is contained in:
2026-08-20 16:21:07 +08:00
parent 112d60b993
commit 3f0fcb88e7
45 changed files with 8758 additions and 5058 deletions
-6
View File
@@ -88,12 +88,6 @@ func cmsEnsureTables(c *beego.Controller) bool {
_ = c.ServeJSON()
return false
}
if err := models.EnsureCmsArticleDefaultCategories(); err != nil {
c.Ctx.Output.SetStatus(500)
c.Data["json"] = map[string]interface{}{"code": 500, "msg": "初始化文章分类失败: " + err.Error()}
_ = c.ServeJSON()
return false
}
return true
}