|
|
@@ -57,6 +57,7 @@ class Goods extends BaseStoreApi
|
|
|
$start_price = $this->params[ 'start_price' ] ?? 0;
|
|
|
$end_price = $this->params[ 'end_price' ] ?? 0;
|
|
|
|
|
|
+
|
|
|
$model = new GoodsModel();
|
|
|
$condition = [
|
|
|
[ 'g.site_id', '=', $this->site_id ],
|
|
|
@@ -108,7 +109,7 @@ class Goods extends BaseStoreApi
|
|
|
$join[] = [ 'store_goods sg2', 'g.goods_id = sg2.goods_id and sg2.store_id=' . $stock_store_id, 'left' ];
|
|
|
$field .= ', IFNULL(sg2.stock, 0) as stock';
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$data = $model->getGoodsPageList($condition, $page_index, $page_size, 'g.sort asc,g.create_time desc', $field, 'g', $join);
|
|
|
return $this->response($data);
|
|
|
}
|