首次运行生成config.php;提高瓷器、城市兼容性。

This commit is contained in:
iyuu.cn committed 2020-07-23 18:47:06 +08:00
1 parent 18cdd7abed
commit 29c2e43405
3 files changed
+22 -31

No files matched your search

+4 -2
View File
@@ -53,12 +53,14 @@ if (file_exists(ROOT_PATH."/config/config.php")) {
// 示例配置
$configALL = require_once ROOT_PATH . '/config/config.sample.php';
echo microtime(true).' 缺少config.php,已载入config.sample.php示例配置。'.PHP_EOL;
echo microtime(true).' 请把配置文件改名为config.php,以免后续版本升级覆盖配置!!!'.PHP_EOL;
echo microtime(true).' 请编辑配置文件config.php,以免后续版本升级覆盖配置!!!'.PHP_EOL;
$t = 30;
do {
echo microtime(true)." 请把配置文件改名为config.php,{$t}秒后继续...".PHP_EOL;
echo microtime(true)." 请编辑配置文件config.php,{$t}秒后继续...".PHP_EOL;
sleep(1);
} while (--$t > 0);
// 第一次会生成
@copy(ROOT_PATH . '/config/config.sample.php', ROOT_PATH . '/config/config.php');
}
echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
// 读取支持列表