From d5c16d44acd580ebc515b02c9766057b81ba73df Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Mon, 25 Aug 2025 09:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=B1=E6=95=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crm/utils/Util.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/crm/utils/Util.php b/app/crm/utils/Util.php index 586ee45..0701f5e 100644 --- a/app/crm/utils/Util.php +++ b/app/crm/utils/Util.php @@ -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); }