From 5136794bd003b4d30934ead8175dfd67ece0a5ce Mon Sep 17 00:00:00 2001 From: win10 Date: Mon, 14 Sep 2020 15:24:25 +0800 Subject: [PATCH] 0 --- app/admin/controller/Index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/Index.php b/app/admin/controller/Index.php index 875b049d..e9a7ab8b 100644 --- a/app/admin/controller/Index.php +++ b/app/admin/controller/Index.php @@ -151,7 +151,7 @@ class Index extends AdminBase // 读取用户信息 public function myinfo() { - $id = session('admin.userid'); + $id = session('user_id'); $ad = new AD; // 获取管理员信息 $list = $ad->where('id', $id) @@ -314,7 +314,7 @@ class Index extends AdminBase 'webtitle' => '修改密码' ,'butname' => '修改' ,'formpost' => 'PUT' - ,'url' => '/admin/index/updatepassword/' . session('admin.userid') + ,'url' => '/admin/index/updatepassword/' . session('user_id') ); // 模板赋值