chore(think): update think

This commit is contained in:
2025-12-24 11:43:00 +08:00
parent 9e044672ee
commit 1f65bb61dd

View File

@@ -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');
}
}
// 3. 为了兼容性,如果存在.env.local也加载优先级最高
if (is_file(__DIR__ . '/.env.local')) {
$app->env->load(__DIR__ . '/.env.local');
}
// 应用初始化
$app->console->run();