```
feat: 添加WebSSH功能并重构塔服务 - 添加WebSSH中间件,支持通过
This commit is contained in:
@@ -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方法
|
||||
|
||||
Reference in New Issue
Block a user