李林
2024-01-02 ce97969fce786a9a1dc0bc18acad6261bee73a21
framework/src/main/java/com/yuanchu/mom/config/FiferConfig.java
@@ -1,5 +1,6 @@
package com.yuanchu.mom.config;
import com.yuanchu.mom.annotation.ValueAuth;
import com.yuanchu.mom.utils.JackSonUtil;
import com.yuanchu.mom.utils.Jwt;
import com.yuanchu.mom.utils.RedisUtil;
@@ -8,6 +9,7 @@
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
@@ -31,6 +33,11 @@
            response.setStatus(HttpServletResponse.SC_OK);
            return true;
        }
        HandlerMethod h = (HandlerMethod)handler;
        ValueAuth annotation = h.getMethodAnnotation(ValueAuth.class);
        if(annotation!=null){
            return true;
        }
        String[] strs = request.getRequestURL().toString().split(serverPort);
        AtomicBoolean judge = new AtomicBoolean(false);
        for (String s : list) {