优化代码结构,移除未使用的依赖和冗余代码
This commit is contained in:
@@ -57,6 +57,9 @@ func isPortAvailable(port uint32) bool {
|
||||
func Start() {
|
||||
serverID := cool.Config.GameOnlineID
|
||||
cool.Config.ServerInfo = config.NewServerService().GetServerID(serverID).ServerList
|
||||
// if cool.Config.ServerInfo.IsVip != 0 {
|
||||
// g.DB().GetCache().SetAdapter(gcache.NewAdapterRedis(redis)) //设置数据库
|
||||
// }
|
||||
|
||||
if cool.Config.ServerInfo.IsDebug == 1 {
|
||||
g.DB().SetDebug(true)
|
||||
|
||||
Reference in New Issue
Block a user