post('id', 0); try { if($info = ArticleService::make()->getInfo($id, $this->userId)){ return showJson(1010, true, $info); }else{ return showJson(1009,false,'',403); } } catch (\Exception $exception){ return showJson(1036,false,['error'=>$exception->getMessage()]); } } /** * 列表 * @return array|mixed */ public function index() { $params = request()->post(); try { if($datas = ArticleService::make()->getDataList($params, $this->userId)){ return showJson(1010, true, $datas); }else{ return showJson(1009,false,'',403); } } catch (\Exception $exception){ return showJson(1041,false,['error'=>$exception->getMessage()]); } } }