Commit 32ca2335 authored by Java-刘 彧阳's avatar Java-刘 彧阳

手机号脱敏

parent cab11d26
......@@ -41,7 +41,7 @@ public class Utils {
Map<String,String> replaceMap = new HashMap<>();
while (matcher.find()) {
String group = matcher.group();
String replace = group.substring(0,3).concat("****").concat(group.substring(7)).concat("[".concat(PasswordUtil.MD5(group)).concat("]"));
String replace = group.substring(0,3).concat("****").concat(group.substring(7)).concat(" [".concat(PasswordUtil.MD5(group)).concat("]"));
replaceMap.put(group,replace);
}
Set<Map.Entry<String, String>> entries = replaceMap.entrySet();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment