From 84ba6f145eec544265e549fa7497c6414ba7ffa2 Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 12 Feb 2022 18:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=B3=BB=E7=BB=9F=E6=80=A7?= =?UTF-8?q?=E8=83=BD;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/Base.php | 1 - composer.json | 4 ++-- config/cache.php | 2 ++ config/database.php | 5 ++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/common/model/Base.php b/app/common/model/Base.php index eb4ea45..ad37c21 100644 --- a/app/common/model/Base.php +++ b/app/common/model/Base.php @@ -1,7 +1,6 @@ =7.1.0", - "topthink/framework": "6.0.*", - "topthink/think-orm": "2.0.*", + "topthink/framework": "^6.0.0", + "topthink/think-orm": "^2.0.0", "topthink/think-view": "^1.0", "topthink/think-migration": "^3.0", "topthink/think-helper": "^3.1", diff --git a/config/cache.php b/config/cache.php index dd492df..292f69e 100644 --- a/config/cache.php +++ b/config/cache.php @@ -1,4 +1,6 @@ true, // 开启字段缓存 - 'fields_cache' => false, - // 字段缓存路径 - 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, + 'fields_cache' => true, + ], 'sqlite' => [ // 数据库类型