admin/app/api/model/plus/article/Article.php
@@ -56,9 +56,10 @@ /** * 获取文章列表 */ public function getList($category_id = 0, $params) public function getList($category_id = 0, $params,$shop_supplier_id=-1) { $model = $this; $shop_supplier_id >= 0 && $model = $model->where('shop_supplier_id', '=', $shop_supplier_id); $category_id > 0 && $model = $model->where('category_id', '=', $category_id); return $model ->with(['image', 'category']) ->where('article_status', '=', 1)