|
|
@ -16,9 +16,9 @@ class AgentProductController extends Controller |
|
|
// 代理商产品列表
|
|
|
// 代理商产品列表
|
|
|
public function index() |
|
|
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; |
|
|
$where['agent_id'] = $this->agent_id; |
|
|
|