From 6529f803f4a048172bad5bc1f564462e1bf91a03 Mon Sep 17 00:00:00 2001 From: Devil Date: Thu, 29 Jul 2021 10:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BF=AE=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/AdminService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/service/AdminService.php b/app/service/AdminService.php index 5dd84b890..ebc980303 100755 --- a/app/service/AdminService.php +++ b/app/service/AdminService.php @@ -22,7 +22,7 @@ use think\facade\Db; class AdminService { // admin登录session key - public static $admin_login_key = 'admin_login'; + public static $admin_login_key = 'admin_login_info'; /** * 管理员列表 @@ -309,7 +309,7 @@ class AdminService // 自己修改密码则重新登录 if(!empty($params['login_pwd']) && $params['id'] == $params['admin']['id']) { - session_destroy(); + self::LoginLogout(); } return DataReturn('编辑成功', 0);