优化结构

This commit is contained in:
Yvan
2026-08-28 17:42:53 +08:00
parent 9148c10c0c
commit 8d290f2954
9 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import (
func SecurityRateLimit(settings *systemservice.SecurityService) gin.HandlerFunc {
return func(c *gin.Context) {
path := strings.TrimSuffix(c.Request.URL.Path, "/")
if !strings.HasSuffix(path, "/base/login") && !strings.HasSuffix(path, "/base/captcha") {
if !strings.HasSuffix(path, "/base/login") && !strings.HasSuffix(path, "/base/captcha") && !strings.HasSuffix(path, "/sysError/createSysError") {
c.Next()
return
}