fix(be):使用初始化init 初始化一些参数

This commit is contained in:
teaser
2021-03-20 22:38:22 +08:00
committed by dushixiang
parent 0bef7d3040
commit 95a50b332c
5 changed files with 20 additions and 6 deletions

View File

@ -32,9 +32,9 @@ func Run() error {
\____|__ /\___ >__/\_ \ |__| |____| \___ >__| |__|_| /__|___| (____ /____/
\/ \/ \/ \/ \/ \/ \/ ` + Version + "\n\n")
global.Config = config.SetupConfig()
// 为了兼容之前调用global包的代码 后期预期会改为调用pgk/config
global.Config = config.GlobalCfg
global.Store = global.NewStore()
global.Cron = cron.New(cron.WithSeconds()) //精确到秒
global.Cron.Start()