From 99ab104312b996447edcfe387279610f15b601cd Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Mon, 24 Mar 2025 23:34:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20RestartBotHandler?= =?UTF-8?q?=20=E4=B8=AD=E7=9A=84=20token=20=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E4=BB=A5=E6=8F=90=E9=AB=98=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/restart/restart.go | 1 - 1 file changed, 1 deletion(-) diff --git a/handler/restart/restart.go b/handler/restart/restart.go index 054fec2..62ee07a 100644 --- a/handler/restart/restart.go +++ b/handler/restart/restart.go @@ -188,7 +188,6 @@ func BuildBotHandler(c *gin.Context) { func RestartBotHandler(c *gin.Context) { token := c.Request.Header.Get("Authorization") - log.Println("获取到token:", token) if token != config.ConfigManager.GetConfig().WebServer.Token { c.JSON(http.StatusUnauthorized, gin.H{"error": "Unauthorized"}) return