This commit is contained in:
@@ -15,7 +15,6 @@ import (
|
||||
"net"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gcache"
|
||||
"github.com/gogf/gf/v2/util/gconv"
|
||||
)
|
||||
|
||||
@@ -58,9 +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(cool.Redis)) //设置数据库
|
||||
}
|
||||
// if cool.Config.ServerInfo.IsVip != 0 {
|
||||
// g.DB().GetCache().SetAdapter(gcache.NewAdapterRedis(cool.Redis)) //设置数据库
|
||||
// }
|
||||
|
||||
if cool.Config.ServerInfo.IsDebug == 1 {
|
||||
g.DB().SetDebug(true)
|
||||
|
||||
Reference in New Issue
Block a user