This commit is contained in:
Liang Ding 2022-06-13 15:27:37 +08:00
parent 6cba470b69
commit 91d04fa15e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
13 changed files with 166 additions and 5 deletions

View file

@ -70,6 +70,7 @@ type AppConf struct {
Search *conf.Search `json:"search"` // 搜索配置
Stat *conf.Stat `json:"stat"` // 统计
Api *conf.API `json:"api"` // API
Repo *conf.Repo `json:"repo"` // 数据仓库
Newbie bool `json:"newbie"` // 是否是安装后第一次启动
}
@ -222,6 +223,10 @@ func InitConf() {
Conf.Api = conf.NewAPI()
}
if nil == Conf.Repo {
Conf.Repo = conf.NewRepo()
}
if 1440 < Conf.Editor.GenerateHistoryInterval {
Conf.Editor.GenerateHistoryInterval = 1440
}