From 3317fda2273152f54cd17457b4f15f67c5be9fbf Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Thu, 30 Jul 2026 16:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=AA=8C=E8=AF=81=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E4=B8=8A=E6=B8=B8=E9=9A=A7=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/VerifySystemDatabase.php | 1 - tests/Feature/Installation/VerifySystemDatabaseTest.php | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/VerifySystemDatabase.php b/app/Console/Commands/VerifySystemDatabase.php index 9af6f293b..658965b05 100644 --- a/app/Console/Commands/VerifySystemDatabase.php +++ b/app/Console/Commands/VerifySystemDatabase.php @@ -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 加载。', diff --git a/tests/Feature/Installation/VerifySystemDatabaseTest.php b/tests/Feature/Installation/VerifySystemDatabaseTest.php index 271ab04ca..95284d832 100644 --- a/tests/Feature/Installation/VerifySystemDatabaseTest.php +++ b/tests/Feature/Installation/VerifySystemDatabaseTest.php @@ -59,7 +59,9 @@ class VerifySystemDatabaseTest extends TestCase { config([ 'upstreams.stored_configuration.enabled' => true, - 'upstreams.local_configuration.enabled' => false, + // 生产刷新节点可能通过私有隧道覆盖上游端点;这不影响系统数据库 + // 本身是否已切换并加载,验证命令不能把两件事绑定在一起。 + 'upstreams.local_configuration.enabled' => true, ]); } }