getCopyright(0); } /** * 获取前端域名 * @return array|string[] */ public function getSceneDomain() { return ( new CoreSysConfigService() )->getSceneDomain(); } /** * 获取服务信息 * @return array|mixed */ public function getService() { $info = ( new CoreConfigService() )->getConfig($this->request->defaultSiteId(), 'SERVICE_INFO'); if (empty($info)) { $info = []; $info[ 'value' ] = [ 'wechat_code' => '', 'enterprise_wechat' => '', 'tel' => '', ]; } return $info[ 'value' ]; } /** * 获取手机端首页列表 * @param $data * @return array */ public function getWapIndexList($data = []) { return ( new CoreSysConfigService() )->getWapIndexList($data); } public function getWebSite() { $info = ( new CoreConfigService() )->getConfigValue(0,'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' => '', ]; } return $info; } /** * 获取地图key * @return array|mixed */ public function getMap() { return (new CoreSysConfigService())->getMap($this->site_id); } }