From e1e2fe5710a5b5cd9c19bd3aa99c998a1a613ca8 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 17 Jan 2026 17:58:01 +0800
Subject: [PATCH] 团购组件增加筛选
---
admin/app/api/model/plus/article/Article.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/admin/app/api/model/plus/article/Article.php b/admin/app/api/model/plus/article/Article.php
index 9dde123..d4f8bd0 100644
--- a/admin/app/api/model/plus/article/Article.php
+++ b/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)
--
Gitblit v1.9.2