完成评论

This commit is contained in:
augushong
2021-01-03 21:52:54 +08:00
parent bcc07c301e
commit 3b5a56aef5
18 changed files with 815 additions and 383 deletions

View File

@@ -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);
}
/**
* 显示创建资源表单页.
*