From 86944126094713192112a807c82b71d3c14bada6 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Wed, 6 May 2020 15:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/IndexController.class.php | 4 +++- Application/Home/Controller/SafeController.class.php | 5 +++-- Application/Home/View/default/Index/phoneLogin.html | 2 +- Application/Home/View/default/Safe/bindTel.html | 5 ++--- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index ad19c8d97..adf2ac5e8 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -106,7 +106,9 @@ class IndexController extends HomeController } } - public function doPhoneLogin($mobile = null, $verify = null) { + public function doPhoneLogin() { + $mobile = $_POST['login_phone']; + $verify = $_POST['code']; if (!$this->checksafecode($mobile, $verify)) { $this->error('验证码错误'); } diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index ba6a98334..a37ae670b 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -603,10 +603,11 @@ class SafeController extends BaseController{ } } - public function addLoginMobile($mobile = null, $verify = null) { + public function addLoginMobile() { if (IS_POST) { /* 检测验证码 TODO: */ - + $mobile = $_POST['login_phone']; + $verify = $_POST['code']; if (!$this->checksafecode($mobile, $verify)) { $this->error('验证码错误'); } diff --git a/Application/Home/View/default/Index/phoneLogin.html b/Application/Home/View/default/Index/phoneLogin.html index dcaec1ca9..dca59442c 100644 --- a/Application/Home/View/default/Index/phoneLogin.html +++ b/Application/Home/View/default/Index/phoneLogin.html @@ -25,7 +25,7 @@ -
+
diff --git a/Application/Home/View/default/Safe/bindTel.html b/Application/Home/View/default/Safe/bindTel.html index dbaa93c66..9a6b69d63 100644 --- a/Application/Home/View/default/Safe/bindTel.html +++ b/Application/Home/View/default/Safe/bindTel.html @@ -57,9 +57,9 @@ *短信验证码 - + - + @@ -216,7 +216,6 @@