优化代码格式

This commit is contained in:
user123456
2025-07-27 10:58:20 +08:00
parent 1881b5b1ba
commit 07a926902a
12 changed files with 94 additions and 111 deletions

View File

@@ -202,4 +202,4 @@ func (ac *AccessController) checkList(matches, list []string) bool {
}
}
return false
}
}

View File

@@ -161,4 +161,4 @@ func init() {
}
}
}()
}
}

View File

@@ -64,4 +64,4 @@ func GetGlobalHTTPClient() *http.Client {
// GetSearchHTTPClient 获取搜索HTTP客户端
func GetSearchHTTPClient() *http.Client {
return searchHTTPClient
}
}

View File

@@ -91,4 +91,4 @@ func transformURL(url, host string) string {
cleanHost = strings.TrimSuffix(cleanHost, "/")
return cleanHost + "/" + url
}
}

View File

@@ -269,4 +269,4 @@ func RateLimitMiddleware(limiter *IPRateLimiter) gin.HandlerFunc {
c.Next()
}
}
}