quanwei
2025-12-05 feda780069d64479c0c20493603717e100655da9
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)