mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
完成文档主题
This commit is contained in:
@@ -57,6 +57,19 @@ class Post extends Common
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function __documentsRead()
|
||||
{
|
||||
$category_id = $this->request->param('category_id',0);
|
||||
|
||||
$list_post = [];
|
||||
if(!empty($category_id)){
|
||||
$list_post = ModelPost::hasWhere('categorys',['category_id'=>$category_id])->order('sort desc')->select();
|
||||
}
|
||||
|
||||
$this->assign('list_post',$list_post);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示编辑资源表单页.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user