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

@@ -22,13 +22,11 @@ import (
func (h Controller) GetServerOnline(data *user.SidInfo, c gnet.Conn) (result *rpc.CommendSvrInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
result = rpc.NewInInfo()
if service.NewBaseSysUserService().GetPerson(data.Head.UserID).Debug == 1 {
result.IsVip = 1
}
//v, _, _ := sg.Do("GetServerInfoList", fetchData)
//result.ServerList = v.([]rpc.ServerInfo) //todo 待修改增加缓存
result.ServerList = rpc.GetServerInfoList()
// if service.NewBaseSysUserService().GetPerson(data.Head.UserID).Debug == 1 {
// result.IsVip = 1
// }
result.IsVip = 1
result.ServerList = rpc.GetServerInfoList(service.NewBaseSysUserService().GetPerson(data.Head.UserID).Debug)
return
//return //TODO 这里待实现改成接口调用Ret方法