Explorar o código

拦截器的权限日志打印3

zhaohongpeng %!s(int64=7) %!d(string=hai) anos
pai
achega
bf18032650

+ 2 - 0
src/main/java/com/uas/platform/b2c/core/filter/SSOInterceptor.java

@@ -203,8 +203,10 @@ public class SSOInterceptor extends AbstractSSOInterceptor {
         while (iterator.hasNext()) {
         while (iterator.hasNext()) {
             ConfigAttribute configAttribute = iterator.next();
             ConfigAttribute configAttribute = iterator.next();
             needPermission = configAttribute.getAttribute();
             needPermission = configAttribute.getAttribute();
+            logger.info("【"+user.getUserUU()+"进入权限匹配】:*******"+"configAttribute:"+FastjsonUtils.toJson(configAttribute));
             if (userAuthorities != null) {
             if (userAuthorities != null) {
                 for (GrantedAuthority ga : userAuthorities) {
                 for (GrantedAuthority ga : userAuthorities) {
+                    logger.info("【"+user.getUserUU()+"用户需求权限和拥有权限的对比】:*******"+"needPermission:"+needPermission+">>>>>>"+"grantedAuthority"+FastjsonUtils.toJson(ga));
                     if (needPermission.equals(ga.getAuthority())) {
                     if (needPermission.equals(ga.getAuthority())) {
                         return;
                         return;
                     }
                     }