getCopyright(); } /** * 获取前端域名 * @return array|string[] */ public function getSceneDomain() { return ( new CoreSysConfigService() )->getSceneDomain(); } /** * 获取手机端首页列表 * @param $data * @return array */ public function getWapIndexList($data = []) { return ( new CoreSysConfigService() )->getWapIndexList($data); } public function getWebSite() { $info = ( new CoreConfigService() )->getConfigValue('WEB_SITE_INFO'); if (empty($info)) { $info = [ 'site_name' => '', 'logo' => '', 'desc' => '', 'latitude' => '', 'longitude' => '', 'province_id' => 0, 'city_id' => 0, 'district_id' => 0, 'address' => '', 'full_address' => '', 'phone' => '', 'business_hours' => '', 'front_end_name' => '', 'front_end_logo' => '', 'icon' => '', 'meta_title' => '', 'meta_desc' => '', 'meta_keyword' => '', ]; } $info[ 'site_addons' ] = ( new CoreAddonService() )->getInstallAddonList(); return $info; } public function getMap() { return ( new CoreSysConfigService() )->getMap(); } public function getAppConfig() { $config = ( new CoreAppService() )->getConfig(); if (!empty($config) && isset($config[ 'wechat_app_secret' ])) unset($config[ 'wechat_app_secret' ]); $weapp_config = ( new CoreWeappConfigService() )->getWeappConfig(); $config[ 'weapp_original' ] = $weapp_config[ 'weapp_original' ]; return $config; } }