chore(think): update think
This commit is contained in:
@@ -21,12 +21,14 @@ if ($appEnv) {
|
||||
if (is_file($envFile)) {
|
||||
$app->env->load($envFile);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
echo "⚠️ 警告:未设置APP_ENV环境变量,默认使用local环境。\n";
|
||||
// 3. 为了兼容性,如果存在.env.local也加载(优先级最高)
|
||||
if (is_file(__DIR__ . '/.env.local')) {
|
||||
$app->env->load(__DIR__ . '/.env.local');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 应用初始化
|
||||
$app->console->run();
|
||||
Reference in New Issue
Block a user