修改身份证加密显示方式

master
zhengchanglong 5 years ago
parent f88a5c7f6e
commit 732ba257ec

@ -600,6 +600,9 @@ function encryptStr($str) {
function encryptIdCard($str) {
$length = strlen($str);
$stars_str = "****";
$stars_str = "";
if($length>=4){
$stars_str = "****";
}
return substr_replace($str, $stars_str, $length-4, 4);
}
Loading…
Cancel
Save