feat:完善项目信息
This commit is contained in:
@ -38,7 +38,7 @@ func (c *Sub) sync(tx *gorm.DB, database string) error {
|
||||
}
|
||||
}
|
||||
// 重新使用默认的数据库
|
||||
tx.Exec(fmt.Sprintf("use %s;", config.SettingInfo.Engine.Mysql.DBName))
|
||||
tx.Exec(fmt.Sprintf("use %s;", config.EngineInfo.Engines.Mysql.Database))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ func Init() {
|
||||
// 活动加入监听
|
||||
service.Subscribe(config.EventForActivityJoinProduce, event.NewActivityJoin())
|
||||
// 开启权限
|
||||
service.NewAuth().Register()(config.SettingInfo.Engine.DBMode, orm.GetDB(), model.NewSysAuthRule().TableName())
|
||||
service.NewAuth().Register()(config.EngineInfo.Mode, orm.GetDB(), model.NewSysAuthRule().TableName())
|
||||
// 开启缓存存储
|
||||
service.NewCache()().Init()
|
||||
}
|
||||
|
Reference in New Issue
Block a user