refactor: 移除转发模式相关代码

This commit is contained in:
flswld committed 2025-01-21 11:42:49 +08:00
1 parent 714db87565
commit 853f6003a3
113 files changed
+597 -11000

No files matched your search

+3 -2
View File
@@ -2,12 +2,13 @@ package controller
import (
"context"
"hk4e/dispatch/model"
"net/http"
"strconv"
"sync"
"time"
"hk4e/dispatch/model"
"hk4e/common/config"
"hk4e/common/mq"
"hk4e/common/region"
@@ -101,7 +102,7 @@ func (c *Controller) Close() {
}
func (c *Controller) registerRouter() {
if config.GetConfig().Logger.Level == "DEBUG" {
if logger.GetConfig().Level == logger.DEBUG {
gin.SetMode(gin.DebugMode)
} else {
gin.SetMode(gin.ReleaseMode)