From 8d28c50c278f358470f1d739898bfb2da806de91 Mon Sep 17 00:00:00 2001 From: "DESKTOP-V763RJ7\\Administrator" <835606593@qq.com> Date: Fri, 6 Feb 2026 22:54:01 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=A8=A1=E5=9D=97=E5=88=A0=E9=99=A4bind?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 29328b2..e2bb1c7 100644 --- a/app/app.go +++ b/app/app.go @@ -17,7 +17,7 @@ func (p *Program) Init(_ svc.Environment) error { if err := config.LoadConfig(); err != nil { return err } - p.moduleList = append(p.moduleList, (&module.Base{}).Bind(config.Get().Log)) + p.moduleList = append(p.moduleList, &module.Base{Log: config.Get().Log}) p.moduleList = append(p.moduleList, &ModuleWebsocket{}) p.moduleList = append(p.moduleList, &ModulePprof{}) diff --git a/go.mod b/go.mod index 9f03832..0ff8bab 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.hlsq.asia/mmorpg/service-robot go 1.24.0 require ( - git.hlsq.asia/mmorpg/service-common v0.0.0-20260206142243-44ebbe444953 + git.hlsq.asia/mmorpg/service-common v0.0.0-20260206145147-5a0f4b71d430 github.com/gorilla/websocket v1.5.3 github.com/judwhite/go-svc v1.2.1 google.golang.org/protobuf v1.36.10 diff --git a/go.sum b/go.sum index 32e2229..e62efd3 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= -git.hlsq.asia/mmorpg/service-common v0.0.0-20260206142243-44ebbe444953 h1:eqGH4SIEgwY7uVIiZrMwitHQEVPetDH9SFzWwIrtWzM= -git.hlsq.asia/mmorpg/service-common v0.0.0-20260206142243-44ebbe444953/go.mod h1:mMhZcumphj6gaVTppVYsMTkd+5HupmQgAc53Pd4MH9I= +git.hlsq.asia/mmorpg/service-common v0.0.0-20260206145147-5a0f4b71d430 h1:8aNIgKpU6HBg7h4ENjuGWshap+VxeKUmLE0IvFoWbug= +git.hlsq.asia/mmorpg/service-common v0.0.0-20260206145147-5a0f4b71d430/go.mod h1:mMhZcumphj6gaVTppVYsMTkd+5HupmQgAc53Pd4MH9I= github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0= github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/IBM/sarama v1.46.3 h1:njRsX6jNlnR+ClJ8XmkO+CM4unbrNr/2vB5KK6UA+IE=