mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2026-10-23 13:24:11 +00:00
首次运行生成config.php;提高瓷器、城市兼容性。
This commit is contained in:
1 parent
18cdd7abed
commit
29c2e43405
3 files changed
+22
-31
No files matched your search
@@ -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;
|
||||
// 读取支持列表
|
||||
|
||||
Reference in new issue
Block a user