From e7dfb238e3e73cdf6887a74ac2a1d3023219868b Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Sat, 21 Mar 2026 17:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phinx-bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phinx-bootstrap.php b/phinx-bootstrap.php index d9c25b6..3f6c3e1 100644 --- a/phinx-bootstrap.php +++ b/phinx-bootstrap.php @@ -43,7 +43,8 @@ require $baseDir . '/vendor/workerman/webman-framework/src/support/helpers.php'; require $baseDir . '/app/functions.php'; Webman\Config::load($baseDir . '/config', ['route', 'middleware', 'process', 'server', 'static']); -$thinkorm = config('thinkorm', []); +// 与 phinx.php 一致直接加载 thinkorm,避免 Webman config() 与 Phinx 表前缀不一致 +$thinkorm = require $baseDir . '/config/thinkorm.php'; if (!empty($thinkorm)) { support\think\Db::setConfig($thinkorm); }