修复:系统数据库验证兼容生产上游隧道

This commit is contained in:
WuYongJie 2026-07-30 16:20:49 +08:00
parent 85f3db56ce
commit 3317fda227
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,6 @@ class VerifySystemDatabase extends Command
if (
$settings['mode'] !== 'shared'
|| ! config('upstreams.stored_configuration.enabled', false)
|| config('upstreams.local_configuration.enabled', false)
) {
return $this->failed(
'新配置未被 Laravel 加载。',

View File

@ -59,7 +59,9 @@ class VerifySystemDatabaseTest extends TestCase
{
config([
'upstreams.stored_configuration.enabled' => true,
'upstreams.local_configuration.enabled' => false,
// 生产刷新节点可能通过私有隧道覆盖上游端点;这不影响系统数据库
// 本身是否已切换并加载,验证命令不能把两件事绑定在一起。
'upstreams.local_configuration.enabled' => true,
]);
}
}