ConfigService::get('h5', 'status'), 'url' => request()->domain() . '/mobile' ]; return $config; } /** * @notes H5设置 * @param $params * @author Tab * @date 2021/7/30 14:15 */ public static function setConfig($params) { ConfigService::set('h5', 'status', $params['status']); // // 恢复原入口 // if(file_exists('./mobile/index_lock.html')) { // // 存在则原商城入口被修改过,先清除修改后的入口 // unlink('./mobile/index.html'); // // 恢复原入口 // rename('./mobile/index_lock.html', './mobile/index.html'); // } // // // H5商城关闭 且 显示空白页 // if($params['status'] == 0) { // // 变更文件名 // rename('./mobile/index.html', './mobile/index_lock.html'); // // 创建新空白文件 // $newfile = fopen('./mobile/index.html', 'w'); // fclose($newfile); // } } }