From 27ad5728c97bf94d7fecbfec96e0f0a2762e48a7 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Feb 2026 23:05:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20bootstrap.php=20?= =?UTF-8?q?=E4=B8=AD=E5=AF=B9=E5=B7=B2=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除对自定义 Db.php 和 Model.php 的加载 - 这些文件已删除,使用 Webman 官方 support\Db 和 support\Model Co-Authored-By: Claude Opus 4.6 --- backend/support/bootstrap.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/support/bootstrap.php b/backend/support/bootstrap.php index e23c9f5..5c1a1b4 100644 --- a/backend/support/bootstrap.php +++ b/backend/support/bootstrap.php @@ -74,13 +74,6 @@ foreach (config('plugin', []) as $firm => $projects) { } } -// 加载数据库类 -include_once __DIR__ . '/Db.php'; -include_once __DIR__ . '/Model.php'; - -// 初始化数据库 -Db::init(); - Middleware::load(config('middleware', [])); foreach (config('plugin', []) as $firm => $projects) { foreach ($projects as $name => $project) {