优化企业网站功能

This commit is contained in:
hero920103 committed 2026-08-20 16:21:07 +08:00
1 parent 112d60b993
commit 3f0fcb88e7
45 files changed
+8758 -5058

No files matched your search

-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
}