mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
兼容casbin2.24.0版本log
迁移脚本编译时不打包
This commit is contained in:
+2
-2
@@ -101,13 +101,13 @@ func Setup(dbs map[string]*gorm.DB) {
|
||||
fmt.Println(time.Now().Format(timeFormat), " [INFO] JobCore Starting...")
|
||||
|
||||
for k, db := range dbs {
|
||||
global.Cfg.SetCrontab(k, cronjob.NewWithSeconds())
|
||||
global.Runtime.SetCrontab(k, cronjob.NewWithSeconds())
|
||||
setup(k, db)
|
||||
}
|
||||
}
|
||||
|
||||
func setup(key string, db *gorm.DB) {
|
||||
crontab := global.Cfg.GetCrontabKey(key)
|
||||
crontab := global.Runtime.GetCrontabKey(key)
|
||||
sysJob := models.SysJob{}
|
||||
jobList := make([]models.SysJob, 0)
|
||||
err := sysJob.GetList(db, &jobList)
|
||||
|
||||
Reference in New Issue
Block a user