From 086a364f41f41143424fd547b995abe7192fcba9 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 2 Dec 2019 15:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=AE=98=E7=BD=91=E5=AE=9E?= =?UTF-8?q?=E5=90=8D=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mobile/Controller/UserController.class.php | 4 ++-- Application/Mobile/View/User/userauth.html | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index 48373ab45..3f1d7cc38 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -1016,8 +1016,8 @@ class UserController extends BaseController // $this->ajaxReturn(array('status' => -1, 'info' => '身份证号码已被使用', 'url' => U('User/userauth'))); // } } - - if (C('tool_age.status') == 0) { + $status = M("Tool","tab_")->field("status")->where("name = 'tool_age'")->find()['status']; + if ($status == 0) { $this->ajaxReturn(array('status' => 0, 'info' => '实名认证暂未开启!', 'url' => U('User/userauth'))); } else { $re = age_verify($_REQUEST['real_name'], $_REQUEST['idcard']); diff --git a/Application/Mobile/View/User/userauth.html b/Application/Mobile/View/User/userauth.html index 1fa5ef00f..186832a67 100644 --- a/Application/Mobile/View/User/userauth.html +++ b/Application/Mobile/View/User/userauth.html @@ -59,15 +59,24 @@ +