Commit ca9703b5 by zhiwj

加密规则修改

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