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 @@ +