request->params([ [ 'id', '' ], [ 'name', '' ], [ 'site_id', 0 ] ]); return success(( new DiyService() )->getInfo($params)); } /** * 底部菜单信息 * @return Response */ public function tabbarList() { $params = $this->request->params([ [ 'key', '' ], [ 'site_id', 0 ] ]); return success(( new DiyConfigService() )->getBottomList($params)); } /** * 底部菜单信息 * @return Response */ public function tabbar() { return success(( new DiyConfigService() )->getBottomConfig()); } /** * 分享内容 * @return Response */ public function share() { $data = $this->request->params([ [ 'route', '' ], [ 'params', '' ] ]); return success(( new DiyRouteService() )->getShare($data)); } public function getAdv() { $data = $this->request->params([ [ 'ap_key', '' ] ]); return success(( new AdvService() )->getInfo($data[ 'ap_key' ])); } }