|
@@ -167,15 +167,13 @@ func allowed(path string) bool {
|
|
|
}
|
|
|
|
|
|
func needCheckLoginStatus(path string) bool {
|
|
|
- for _, p := range publicRoutes {
|
|
|
+ for _, p := range privateRoutes {
|
|
|
if stringUtils.IsBlank(p) {
|
|
|
continue
|
|
|
}
|
|
|
src := baseUrl + p
|
|
|
if strings.HasSuffix(p, "*") {
|
|
|
-
|
|
|
target := src[:len(src)-1]
|
|
|
- fmt.Println("target:" + target)
|
|
|
if strings.HasPrefix(path, target) {
|
|
|
return true
|
|
|
}
|