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' => [ // 数据库类型