From 80352e8601beaf4329bc70bcb2da61465896159a Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 18 Oct 2025 22:50:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c079816..82b0263 100644 --- a/main.go +++ b/main.go @@ -392,13 +392,13 @@ func UserFuncIntercept(id int, url string) bool { //如果用户有权限,则不拦截 for k, v := range proto.Per_menu_map { if strings.Contains(url, k) { - if v == 1 && user.VideoFunc > 0 { + if v == 1 && user.VideoFunc <= 0 { return true } - if v == 2 && user.DeviceFunc > 0 { + if v == 2 && user.DeviceFunc <= 0 { return true } - if v == 3 && user.CIDFunc > 0 { + if v == 3 && user.CIDFunc <= 0 { return true } }