From a02b5ef8e68385cd8d03a1c0b18ccd1205f4f33c Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 3 Dec 2021 11:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=96=B0=E5=A2=9E=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E7=99=BB=E9=99=86=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PublicController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index 4a4d8528b..cbc065301 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -33,6 +33,9 @@ class PublicController extends \Think\Controller $Member = D('Member'); if ($Member->login($uid)) { //登录用户 //TODO:跳转到登录前页面 + if(session('user_auth')['username'] == "wmtxhh"){ + $this->success('登录成功!', U('Site/config_index')); + } $this->success('登录成功!', U('Index/index')); } else { @@ -55,6 +58,11 @@ class PublicController extends \Think\Controller } } else { if (is_login()) { + + if(session('user_auth')['username'] == "wmtxhh"){ + $this->success('登录成功!', U('Site/config_index')); + } + $this->redirect('Index/index'); } else { /* 读取数据库中的配置 */