public function actionList() { $order = isset($_POST['order']) ? $_POST['order'] : 1; $order = CommonFunc::checkIntParam($order, 4, 1); $type = isset($_POST['type']) ? $_POST['type'] : ''; $type = CommonFunc::checkIntParam($type, 2, ''); $search = isset($_POST['search']) ? $_POST['search'] : ''; $category = isset($_POST['category']) ? $_POST['category'] : ''; $category = CommonFunc::checkIntParam($category, Category::getMaxCategory(), ''); $maxId = isset($_POST['maxid']) ? $_POST['maxid'] : 0; $page = isset($_POST['page']) ? $_POST['page'] : 0; if (!$maxId) { $maxId = AppInfoList::getMaxId(); } $appsInfo = AppInfoList::getData($order, $type, $search, $category, $_POST['page'] * 25, 25, $maxId); echo new ReturnInfo(RET_SUC, array('list' => $appsInfo['data'], 'maxid' => $maxId, 'pageCount' => $appsInfo['pageCount'])); }
public function actionGetMaxId() { $maxId = AppInfoList::getMaxId(); echo new ReturnInfo(RET_SUC, $maxId); }
public function actionGetMaxId() { echo new ReturnInfo(RET_SUC, AppInfoList::getMaxId()); }