fix: 移除 RestartBotHandler 中的 token 日志记录,以提高安全性

This commit is contained in:
lixiangwuxian 2025-03-24 23:34:25 +08:00
parent fe376e7f9e
commit 99ab104312

View File

@ -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