From c72817aee6127bc461de48cc04b20ed3bb685b42 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Mon, 24 Mar 2025 23:24:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=20RestartBotHandler=20?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=BB=A5=E8=BE=93=E5=87=BA=E8=8E=B7=E5=8F=96=E5=88=B0=E7=9A=84?= =?UTF-8?q?=20token=EF=BC=8C=E4=BE=BF=E4=BA=8E=E8=B0=83=E8=AF=95=E5=92=8C?= =?UTF-8?q?=E7=9B=91=E6=8E=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 insertion(+) diff --git a/handler/restart/restart.go b/handler/restart/restart.go index 62ee07a..054fec2 100644 --- a/handler/restart/restart.go +++ b/handler/restart/restart.go @@ -188,6 +188,7 @@ 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