From a81f3b2e3952cff4136c28710e26e7ca864b6cdb Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 23 Aug 2023 19:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=8B=A6=E6=88=AA=E5=99=A8?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/router.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/router/router.go b/router/router.go index aa678be..b0ba52f 100644 --- a/router/router.go +++ b/router/router.go @@ -6,7 +6,6 @@ import ( "omc/core/decoder" "omc/core/dpack" heartbeat "omc/core/heart_beat" - "omc/core/interceptor" "omc/core/manage" "omc/handle/api" "time" @@ -68,8 +67,8 @@ func LoadServer(cg conf.Channel) ziface.IServer { heart := s.GetHeartBeat() heart.SetHeartbeatFunc(heartbeat.MyHeartBeat) - // 添加自定义拦截器 - s.AddInterceptor(&interceptor.GlobalInterceptor{}) + // 添加自定义拦截器 debug调试输出信息用 + // s.AddInterceptor(&interceptor.GlobalInterceptor{}) //注册路由 ================ s.AddRouter(api.ReqLoginAlarmMsgID, &api.ReqLoginAlarm{})