* Fix api for stories limit.

This commit is contained in:
zhengrunyu
2022-04-26 14:45:40 +08:00
parent 5e6290cda4
commit d288ef5b11

View File

@@ -24,7 +24,7 @@ class storiesEntry extends entry
if(!$productID) return $this->sendError(400, 'Need product id.');
$control = $this->loadController('product', 'browse');
$control->browse($productID, $this->param('branch', ''), $this->param('status', 'unclosed'), 0, $this->param('type', 'story'), $this->param('order', 'id_desc'), 0, $this->param('limit', '100'), $this->param('page', 1));
$control->browse($productID, $this->param('branch', ''), $this->param('status', 'unclosed'), 0, $this->param('type', 'story'), $this->param('order', 'id_desc'), 0, $this->param('limit', 20), $this->param('page', 1));
$data = $this->getData();
if(!$data or !isset($data->status)) return $this->sendError(400, 'error');