post(); $pageSize = request()->post('pageSize', 15); $datas = ArticleService::make()->getDataList($params, $pageSize, $this->userId); return showJson(1010, true, $datas); } /** * 详情 */ public function info() { $id = request()->post('id',0); if(empty($id)){ return showJson(2501, false); } if($info = ArticleService::make()->getInfo($id, $this->userId)){ return showJson(1010, true, $info); }else{ return showJson(1009, false); } } /** * 单页数据 */ public function page() { $type = request()->post('type',''); if(empty($type)){ return showJson(2501, false); } $pageId = ConfigService::make()->getConfigByCode("page_{$type}"); if($pageId<=0){ return showJson(1032, false); } if($info = ArticleService::make()->getInfo($pageId)){ return showJson(1010, true, $info); }else{ return showJson(1009, false); } } }