post('type', 1); try { if($info = TeamService::make()->getInfo($this->userId, $type)){ 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() { $page = request()->post('page', 1); $pageSize = request()->post('pageSize', 10); $userId = request()->post('user_id', 0); try { if($datas = TeamService::make()->getDataList($userId? $userId : $this->userId, $page, $pageSize)){ return showJson(1010, true, $datas); }else{ return showJson(1009,false,'',403); } } catch (\Exception $exception){ return showJson(1041,false,['error'=>$exception->getMessage()]); } } }