Exemplo n.º 1
0
 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']));
 }
Exemplo n.º 2
0
 public function actionGetMaxId()
 {
     $maxId = AppInfoList::getMaxId();
     echo new ReturnInfo(RET_SUC, $maxId);
 }
Exemplo n.º 3
0
 public function actionGetMaxId()
 {
     echo new ReturnInfo(RET_SUC, AppInfoList::getMaxId());
 }