core_config_service = new CoreConfigService(); } /** * 设置H5信息 * @param array $value * @return bool */ public function setH5(array $value) { $data = [ 'is_open' => $value['is_open'] ]; return $this->core_config_service->setConfig($this->site_id,ConfigKeyDict::H5, $data); } /** * 获取h5配置 * @return mixed */ public function getH5(){ return (new CoreH5Service())->getH5($this->site_id); } }