fix: nav
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -22,7 +22,8 @@ class ContentSortModel extends Model
|
||||
$field = array(
|
||||
'a.*',
|
||||
'b.type',
|
||||
'b.urlname'
|
||||
'b.urlname',
|
||||
'(select count(*) from ay_content c where c.scode=a.scode) wzcount'
|
||||
);
|
||||
$join = array(
|
||||
'ay_model b',
|
||||
|
||||
Reference in New Issue
Block a user