From 898043fc97d2ab8b793fd317a049b874ed207c6d Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Wed, 10 Dec 2025 20:12:31 +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