* code for task #44312.

This commit is contained in:
王怡栋
2021-11-18 17:10:01 +08:00
parent 084dc50d15
commit adc2aa1c9b
+2 -1
View File
@@ -32,9 +32,10 @@ class productplansEntry extends entry
{
$result = array();
$plans = $data->data->plans;
$pager = $data->data->pager;
foreach($plans as $plan) $result[] = $plan;
return $this->send(200, array('plans' => $result));
return $this->send(200, array('page' => $pager->pageID, 'total' => $pager->recTotal, 'limit' => $pager->recPerPage, 'plans' => array_values($result)));
}
if(isset($data->status) and $data->status == 'fail') return $this->sendError(400, $data->message);