...
|
...
|
@@ -216,10 +216,10 @@ class Goods extends Api |
|
|
public function getCategoryGoodsList()
|
|
|
{
|
|
|
$params = $this->request->param();
|
|
|
if (empty($params['category_two_id'])) $this->error('缺少参数 category_two_id!');
|
|
|
// if (empty($params['category_two_id'])) $this->error('缺少参数 category_two_id!');
|
|
|
$page = $params['page'];
|
|
|
$limit = Config::get('paginate.index_rows');
|
|
|
$where['category_two_id'] = $params['category_two_id'];
|
|
|
if (!empty($params['category_two_id'])) $where['category_two_id'] = $params['category_two_id'];
|
|
|
if (!empty($params['category_three_id'])) $where['category_three_id'] = $params['category_three_id'];
|
|
|
if (!empty($params['category_group_id'])) $where['category_group_ids'] = ['like','%,'.$params['category_group_id'].',%'];
|
|
|
if (!empty($params['country_id'])) $where['country_id'] = $params['country_id'];
|
...
|
...
|
|