From 093e04b3f30c6bb4ac1d996697b69a8727abcf18 Mon Sep 17 00:00:00 2001 From: liapples Date: Mon, 26 Jul 2021 09:20:31 +0800 Subject: [PATCH] =?UTF-8?q?channel=5Fid=E6=94=B9=E4=B8=BAcategory=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/AgentProductController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/AgentProductController.php b/app/Http/Controllers/Api/AgentProductController.php index 6d5dda6..4026e83 100644 --- a/app/Http/Controllers/Api/AgentProductController.php +++ b/app/Http/Controllers/Api/AgentProductController.php @@ -16,9 +16,9 @@ class AgentProductController extends Controller // 代理商产品列表 public function index() { - $channel_id = request()->input('channel_id'); - if ($channel_id) { - $where['channel_id'] = $channel_id; + $category_id = request()->input('category_id'); + if ($category_id) { + $where['category_id'] = $category_id; } $where['agent_id'] = $this->agent_id;