This commit is contained in:
Gitea
2022-03-30 09:13:50 +08:00
parent 15dfc6576b
commit 557aa3c555
179 changed files with 6115 additions and 4092 deletions

View File

@@ -16,7 +16,7 @@ class ContentModel extends Model
protected $scodes = array();
// 获取文章列表
public function getList($mcode)
public function getList($mcode, $where = array())
{
$field = array(
'a.id',
@@ -61,6 +61,7 @@ class ContentModel extends Model
->where("b.mcode='$mcode'")
->where('d.type=2 OR d.type is null ')
->where("a.acode='" . session('acode') . "'")
->where($where)
->join($join)
->order('a.sorting ASC,a.id DESC')
->page()