fix(config): 修复服务器服务中错误的字段引用

将 online_id 字段更正为 port 字段,以正确获取客户端连接信息
```
This commit is contained in:
2026-01-08 03:59:37 +08:00
parent 97dfc61939
commit 56fe334045

View File

@@ -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(), "服务器假踢人")