From 8a241cceb80af9997f94db23735c101f734bdfc7 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Fri, 13 Dec 2019 17:01: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 | 6 ++++++ Application/Admin/View/Member/edit.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index bcb506d46..af1e31127 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -596,4 +596,10 @@ function encryptStr($str) { $stars_str = $stars_str."*"; } return substr_replace($str, $stars_str, 3, $length-6); +} + +function encryptIdCard($str) { + $length = strlen($str); + $stars_str = "****"; + return substr_replace($str, $stars_str, $length-4, 4); } \ No newline at end of file diff --git a/Application/Admin/View/Member/edit.html b/Application/Admin/View/Member/edit.html index d919416fe..50f4cca3e 100644 --- a/Application/Admin/View/Member/edit.html +++ b/Application/Admin/View/Member/edit.html @@ -113,7 +113,7 @@ 身份证号 - + 点击修改