更新代码,完善功能

This commit is contained in:
2020-02-18 14:50:57 +08:00
parent 31fd944b9c
commit 8bc0f7534b
36 changed files with 283 additions and 280 deletions

View File

@@ -58,10 +58,9 @@ class Index extends Admin {
* @title 后台退出
* @return html
*/
public function logout() {
$user = model('Member');
$user->logout();
$this->redirect('admin/index/login');
public function logout(Member $user) {
Session::delete('userInfo');
$this->redirect('/admin/login');
}
/**
@@ -87,12 +86,10 @@ class Index extends Admin {
),
),
);
$data = array(
$this->data = array(
'keyList' => $keylist,
);
$this->assign($data);
$this->setMeta("更新缓存");
return $this->fetch('public/edit');
return $this->fetch('admin/public/edit');
}
}
}