```
fix(config): 修复服务器服务中错误的字段引用 将 online_id 字段更正为 port 字段,以正确获取客户端连接信息 ```
This commit is contained in:
@@ -32,7 +32,7 @@ func NewServerService() *ServerService {
|
||||
|
||||
r, _ := gconv.Map(data)["list"].(gdb.Result)
|
||||
for _, v := range r {
|
||||
t, ok := cool.GetClient(gconv.Uint16(v.Map()["online_id"]))
|
||||
t, ok := cool.GetClient(gconv.Uint16(v.Map()["port"]))
|
||||
|
||||
if ok {
|
||||
cool.Logger.Info(context.TODO(), "服务器假踢人")
|
||||
|
||||
Reference in New Issue
Block a user