springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/helper/encrypt/ParammeterInterceptor.java
@@ -39,7 +39,7 @@ @Override public Object intercept(Invocation invocation) throws Throwable { log.debug("加密拦截器"); //log.debug("加密拦截器"); //拦截 ParameterHandler 的 setParameters 方法 动态设置参数 if (invocation.getTarget() instanceof ParameterHandler) { ParameterHandler parameterHandler = (ParameterHandler) invocation.getTarget(); springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/helper/encrypt/ResultInterceptor.java
@@ -34,7 +34,7 @@ @Override public Object intercept(Invocation invocation) throws Throwable { log.debug("解密拦截器"); //log.debug("解密拦截器"); Object result = invocation.proceed(); if (Objects.isNull(result)){ return null; springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/helper/sensitive/SensitiveInterceptor.java
@@ -33,7 +33,7 @@ @SuppressWarnings("unchecked") @Override public Object intercept(Invocation invocation) throws Throwable { log.info("脱敏拦截器"); //log.debug("脱敏拦截器"); List<Object> records = (List<Object>) invocation.proceed(); // 对结果集脱敏 records.forEach(this::sensitive); @@ -64,6 +64,7 @@ // 获取对应的脱敏策略 并进行脱敏 SensitiveStrategy type = annotation.strategy(); Object o = type.getDesensitizer().apply((String) value); log.debug("脱敏信息:{}->{}" , value, o.toString() ); // 把脱敏后的值塞回去 metaObject.setValue(name, o); }