From 22ac6bf29325214ebc7f35c52225b66e420c2a23 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Sun, 28 Jun 2020 10:30:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/SafeController.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 92ba8702d..1f55f2cdb 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -627,7 +627,6 @@ class SafeController extends BaseController{ return $this->ajaxReturn(['status'=>0,'msg'=>'手机号已被绑定']); } } else { - echo 222; if (!$exists) { return $this->ajaxReturn(['status'=>0,'msg'=>'手机号未被绑定']); } From 4058eb3963fdd8df46a0f1effcc85bebac7998f6 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Sun, 28 Jun 2020 11:00:09 +0800 Subject: [PATCH 2/3] 1 --- Application/Home/Controller/SafeController.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 1f55f2cdb..0891a3690 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -99,6 +99,7 @@ class SafeController extends BaseController{ // if(empty($oldpwd)) { // $this->error("旧密码不能为空"); // } + $this->checkPaswwordFormat($safepwd); if(empty($safepwd)) { $this->error("安全密码不能为空"); } @@ -107,12 +108,8 @@ class SafeController extends BaseController{ } $id = get_pid(); $data['second_pwd'] = $this->think_ucenter_md5($safepwd, UC_AUTH_KEY); - $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); - if($updateRs) { - $this->success("修改成功"); - }else { - $this->error("修改失败,请重新操作"); - } + M("promote","tab_")->where(['id'=>$id])->save($data); + $this->success("修改成功"); } $this->display(); From 2680f92079fd3424065c4d15e62ee943d0d04aaf Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Sun, 28 Jun 2020 11:28:48 +0800 Subject: [PATCH 3/3] 1 --- Application/Home/Controller/SafeController.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 0891a3690..aa37c1988 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -54,11 +54,9 @@ class SafeController extends BaseController{ $this->checkPaswwordFormat($confirmpassword); $data['second_pwd'] = $this->think_ucenter_md5($confirmpassword, UC_AUTH_KEY); $id = get_pid(); - $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); - if($updateRs) { - recordPromoteLogs('安全管理','设置安全密码'); - $this->success("安全密码设置成功"); - } + M("promote","tab_")->where(['id'=>$id])->save($data); + recordPromoteLogs('安全管理','设置安全密码'); + $this->success("安全密码设置成功"); } public function think_ucenter_md5($str, $key = 'ThinkUCenter')