1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 11:51:34 +08:00
parent 0e3269b97e
commit 05d427cbea
2 changed files with 9 additions and 13 deletions

View File

@@ -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)