]> 127.0.0.1 Git - front/.git/commitdiff
1 v0.1.20241022073329
authorqydysky <qydysky@foxmail.com>
Tue, 22 Oct 2024 07:31:12 +0000 (07:31 +0000)
committerGitHub <noreply@github.com>
Tue, 22 Oct 2024 07:31:12 +0000 (07:31 +0000)
config.go

index ba66db89d6077a63b28e3df49936fbb62b0e648a..f327e62d0a151222a94e10bd17d88f2646367366 100755 (executable)
--- a/config.go
+++ b/config.go
@@ -353,6 +353,10 @@ func (t *Route) FiliterBackByRequest(r *http.Request) []*Back {
                        continue
                }
 
+               if !t.Backs[i].AlwaysUp && t.Backs[i].Weight == 0 {
+                       continue
+               }
+
                t.Backs[i].route = t
                backLink = append(backLink, &t.Backs[i])
        }