diff --git a/library/think/db/Query.php b/library/think/db/Query.php index f2a8e455..21eaea29 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1744,7 +1744,7 @@ class Query $schema = $guid; } // 读取缓存 - if (is_file(RUNTIME_PATH . 'schema/' . $schema . '.php')) { + if (!App::$debug && is_file(RUNTIME_PATH . 'schema/' . $schema . '.php')) { $info = include RUNTIME_PATH . 'schema/' . $schema . '.php'; } else { $info = $this->connection->getFields($guid);