|
|
@ -37,7 +37,10 @@ class Goods extends Controller |
|
|
|
$model = new GoodsModel; |
|
|
|
$model = new GoodsModel; |
|
|
|
$params = $this->request->param(); |
|
|
|
$params = $this->request->param(); |
|
|
|
//$params['channel'] = 'zy'; |
|
|
|
//$params['channel'] = 'zy'; |
|
|
|
$params['merchantId'] = $this->merchantId; |
|
|
|
if (!isset($params['merchant_id'])) { |
|
|
|
|
|
|
|
$params['merchant_id'] = $this->merchantId; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$list = $model->getList($params, (int)$this->request->param('pageSize', 15)); |
|
|
|
$list = $model->getList($params, (int)$this->request->param('pageSize', 15)); |
|
|
|
if ($list->isEmpty()) { |
|
|
|
if ($list->isEmpty()) { |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|