From dbb410103d83ae6e01694b1d8e3b442d22d439dd Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 2 Dec 2019 17:38:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=812.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mobile/Controller/UserController.class.php | 3 +++ Application/Mobile/View/User/userauth.html | 13 +++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index 0edcc5872..b441ef5ae 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -1052,6 +1052,9 @@ class UserController extends BaseController } } else { $user = D('User')->where(array('id' => $logininfo['user_id']))->find(); + if($user["age_status"] > 0){ + $user["idcard"] = substr($user["idcard"],0,1)."***********".substr($user["idcard"],-1,1); + } $this->assign('user', $user); $this->display(); } diff --git a/Application/Mobile/View/User/userauth.html b/Application/Mobile/View/User/userauth.html index 436e82ab7..e1741b847 100644 --- a/Application/Mobile/View/User/userauth.html +++ b/Application/Mobile/View/User/userauth.html @@ -28,7 +28,7 @@
真实姓名
- + @@ -41,18 +41,20 @@ +
提交
证件号码
- +
+
返回
- -
保存修改
+ + @@ -72,6 +74,9 @@