脱敏优化

This commit is contained in:
2025-08-25 09:55:12 +08:00
parent fad96708ea
commit d5c16d44ac
+5
View File
@@ -126,9 +126,14 @@ class Util
public static function mask($str)
{
$length = strlen($str);
if(empty($str)){
return '';
}
if($length <= 6){
return $str;
}
return substr($str, 0, 3) . '****' . substr($str, -4);
}