public static String mobileMask(String mobile) {
if (StringUtils.isEmpty(mobile) || mobile.length() != 11) return mobile;
return mobile.substring(0, 3) + "****" + mobile.substring(7, 11);
}
public static String mobileMask(String mobile) {
if (StringUtils.isEmpty(mobile) || mobile.length() != 11) return mobile;
return mobile.substring(0, 3) + "****" + mobile.substring(7, 11);
}
本文标题:对手机号码进行处理
本文链接:https://www.haomeiwen.com/subject/uoyqrftx.html
网友评论