fix: bug修复
This commit is contained in:
@@ -133,7 +133,7 @@ class Product extends Model {
|
||||
public function getNewItemLists($where = null, $order = null, $field = null, $limit = null) {
|
||||
$this->alias('p')->join('product_category c', 'p.cid=c.id', 'INNER')->join('product_category t', 'c.pid=t.id', 'INNER');
|
||||
if (is_array($where)) {
|
||||
$where = array_merge(['p.stat' => ['eq', '0'],'p.isnew' => ['eq', '1'],'p.is_show' => ['eq', '0'],'t.isshow' => ['eq', '1'],'p.country_code' => ['eq', 'ZH']], $where);
|
||||
$where = array_merge(['p.stat' => ['eq', '0'],'p.isnew' => ['eq', '1'], 'p.is_show' => ['eq', '0'],'t.isshow' => ['eq', '1'],'p.country_code' => ['eq', 'ZH']], $where);
|
||||
}
|
||||
if ($where) {
|
||||
$this->where($where);
|
||||
|
||||
Reference in New Issue
Block a user