feat:完善入驻信息管理
This commit is contained in:
@ -6,7 +6,6 @@ import (
|
||||
"SciencesServer/config"
|
||||
"SciencesServer/cron"
|
||||
"SciencesServer/router"
|
||||
"SciencesServer/rpc/client"
|
||||
"SciencesServer/serve/cache"
|
||||
"SciencesServer/serve/es"
|
||||
"SciencesServer/serve/logger"
|
||||
@ -36,19 +35,19 @@ func (this *Serve) Run() {
|
||||
obj.Upload.Exts = strings.Split(obj.Upload.Ext, ",")
|
||||
logger.NewLogger().Init(&logger.Option{File: obj.Log.File, LeastDay: obj.Log.LeastDay, Level: obj.Log.Level, IsStdout: false}).Load()
|
||||
})
|
||||
utils.LoadConfig(this.Option.RpcConfig, config.RPCServerSettingInfo, func(i interface{}) {
|
||||
obj := i.(*config.RPCServerSetting)
|
||||
go utils.TryCatch(func() {
|
||||
options := make(map[string]*client.ServerOption, 0)
|
||||
|
||||
for k, v := range obj.Servers {
|
||||
options[k] = &client.ServerOption{
|
||||
Host: v.Host, Port: v.Port, IsTLS: v.IsTLS, TLSName: v.TLSName, Pem: v.Pem,
|
||||
}
|
||||
}
|
||||
client.NewServer(options).Run()
|
||||
})
|
||||
})
|
||||
//utils.LoadConfig(this.Option.RpcConfig, config.RPCServerSettingInfo, func(i interface{}) {
|
||||
// obj := i.(*config.RPCServerSetting)
|
||||
// go utils.TryCatch(func() {
|
||||
// options := make(map[string]*client.ServerOption, 0)
|
||||
//
|
||||
// for k, v := range obj.Servers {
|
||||
// options[k] = &client.ServerOption{
|
||||
// Host: v.Host, Port: v.Port, IsTLS: v.IsTLS, TLSName: v.TLSName, Pem: v.Pem,
|
||||
// }
|
||||
// }
|
||||
// client.NewServer(options).Run()
|
||||
// })
|
||||
//})
|
||||
cache.Init()
|
||||
orm.NewInstance(
|
||||
orm.WithDebug(config.SettingInfo.Engine.Debug),
|
||||
|
Reference in New Issue
Block a user