feat: 添加WebSSH功能并重构塔服务

- 添加WebSSH中间件,支持通过
This commit is contained in:
2026-01-09 00:43:06 +08:00
parent 971abd29ab
commit 54e0649313
6 changed files with 320 additions and 227 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/butoften/array"
)
func GetServerInfoList(isdebug bool) []ServerInfo {
func GetServerInfoList(isdebug int32) []ServerInfo {
ret := service.NewServerService().GetServer()
@@ -27,7 +27,9 @@ func GetServerInfoList(isdebug bool) []ServerInfo {
tt.UserCnt = 300
}
if v.IsDebug != 0 {
if v.IsDebug != 0 && isdebug == 0 {
//如果是调试服务器,但是不是测试玩家,直接返回下一个
continue
}
tt.Name = v.Name