Commit ca9703b5 by zhiwj

加密规则修改

parent 825da667
...@@ -44,10 +44,10 @@ public class EncryptJsonSerializer extends AbstractJsonSerializer { ...@@ -44,10 +44,10 @@ public class EncryptJsonSerializer extends AbstractJsonSerializer {
} }
//手机号或者会员卡号 第5-8位用*代替 //手机号或者会员卡号 第5-8位用*代替
int length = data.length(); int length = data.length();
if (length > 8) { if (length > 7) {
return data.substring(0, 4) + "****" + data.substring(8); return data.substring(0, 3) + "****" + data.substring(7);
} else if (length > 4) { } else if (length > 4) {
return data.substring(0, 4) + "****"; return data.substring(0, 3) + "****";
} else { } else {
return "****"; return "****";
} }
......
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