getBottomList($params); $site_addon = ( new CoreSiteService() )->getSiteCache($this->request->defaultSiteId()); // 单应用,排除 系统 底部导航设置 if (count($list) > 1 && count($site_addon[ 'apps' ]) == 1) { foreach ($list as $k => $v) { if ($v[ 'key' ] = 'app') { unset($list[ $k ]); break; } } $list = array_values($list); } $res = []; foreach ($list as $k => $v) { $res[] = $this->getBottomConfig($site_id); } return $res; } /** * 获取底部导航配置 * @param $key * @return array */ public function getBottomConfig(int $site_id) { return ( new CoreDiyConfigService() )->getBottomConfig($site_id); } /** * 获取启动页配置 * @return array */ public function getStartUpPageConfig($type) { return ( new CoreDiyConfigService() )->getStartUpPageConfig(0, $type); } }