From 56fe334045a6cc52a8d155bab0015f3f339d60df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Thu, 8 Jan 2026 03:59:37 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(config):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=9C=8D=E5=8A=A1=E4=B8=AD=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=AD=97=E6=AE=B5=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 online_id 字段更正为 port 字段,以正确获取客户端连接信息 ``` --- modules/config/service/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/service/server.go b/modules/config/service/server.go index 44140055..94b04532 100644 --- a/modules/config/service/server.go +++ b/modules/config/service/server.go @@ -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(), "服务器假踢人")