Browse Source

channel_id改为category_id

dev
李可松 4 years ago
parent
commit
093e04b3f3
  1. 6
      app/Http/Controllers/Api/AgentProductController.php

6
app/Http/Controllers/Api/AgentProductController.php

@ -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;

Loading…
Cancel
Save