From 51ec98113c6d49d0f7eec4e3c030e55e337e97db Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 26 五月 2025 15:47:16 +0800
Subject: [PATCH] 芯导软件(江苏)有限公司  delete

---
 framework/src/main/java/com/yuanchu/mom/config/PowerConfig.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/java/com/yuanchu/mom/config/PowerConfig.java b/framework/src/main/java/com/yuanchu/mom/config/PowerConfig.java
index ea9b1c3..0ec0878 100644
--- a/framework/src/main/java/com/yuanchu/mom/config/PowerConfig.java
+++ b/framework/src/main/java/com/yuanchu/mom/config/PowerConfig.java
@@ -4,6 +4,7 @@
 import cn.hutool.json.JSONUtil;
 import com.alibaba.fastjson.JSON;
 import com.yuanchu.mom.annotation.ValueAuth;
+import com.yuanchu.mom.annotation.ValueClassify;
 import com.yuanchu.mom.exception.ErrorException;
 import com.yuanchu.mom.exception.MyFileException;
 import com.yuanchu.mom.mapper.AuthMapper;
@@ -42,6 +43,11 @@
             Integer userId = Integer.parseInt(obj.get("id") + "");
             int i = authMapper.isPower(userId, h.getMethod().getName());
             if (i == 0){
+                // 鍒ゆ柇鏄惁鏈夋潈闄愭敞瑙�
+                ValueClassify valueClassify = h.getMethodAnnotation(ValueClassify.class);
+                if (valueClassify == null) {
+                    return HandlerInterceptor.super.preHandle(request, response, handler);
+                }
                 throw new ErrorException(obj.get("name") + " 鏃犳潈闄愯闂� " + h.getMethod().getName() + " 鎺ュ彛");
             }
         }
@@ -56,5 +62,6 @@
     @Override
     public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
         HandlerInterceptor.super.afterCompletion(request, response, handler, ex);
+
     }
 }

--
Gitblit v1.9.3