Merge pull request #660 from aix3/master

解决文档发布之后内容为空白
This commit is contained in:
玖亖伍
2021-03-19 10:00:50 +08:00
committed by GitHub

View File

@@ -34,6 +34,7 @@ func RegisterDataBase() {
beego.Info("正在初始化数据库配置.")
adapter := beego.AppConfig.String("db_adapter")
orm.DefaultTimeLoc = time.Local
orm.DefaultRowsLimit = -1
if strings.EqualFold(adapter, "mysql") {
host := beego.AppConfig.String("db_host")