mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
完成评论
This commit is contained in:
@@ -5,6 +5,7 @@ namespace app\index\controller;
|
||||
use app\model\Category;
|
||||
use app\model\Post;
|
||||
use app\model\PostCategory;
|
||||
use think\facade\Session;
|
||||
use think\facade\View;
|
||||
use think\Request;
|
||||
|
||||
@@ -63,6 +64,14 @@ class Index extends Common
|
||||
}
|
||||
|
||||
|
||||
public function logout()
|
||||
{
|
||||
Session::clear();
|
||||
|
||||
$back_url = $this->request->param('back_url','/');
|
||||
return $this->success('退出成功',$back_url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示创建资源表单页.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user