publish 0.7.1

This commit is contained in:
曾文豪
2023-02-23 12:13:55 +08:00
parent a22c08738a
commit 149f4ab061
12 changed files with 23 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.7.0</version>
<version>0.7.1</version>
</parent>
<artifactId>springboot-web</artifactId>

View File

@@ -22,6 +22,9 @@ public class DesensitizeValueFilter implements ValueFilter {
}
Field field = ClassUtil.getDeclaredField(object.getClass(), name);
if (ObjectUtil.isEmpty(field)) {
return value;
}
Desensitize desensitize = field.getAnnotation(Desensitize.class);
if (String.class != field.getType() || ObjectUtil.isEmpty(desensitize)) {
return value;