From 732ba257ec3cb005776c93eab82fb6488ebfabaf Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Fri, 13 Dec 2019 17:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BA=AB=E4=BB=BD=E8=AF=81?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/function.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index af1e31127..c76087014 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -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); } \ No newline at end of file