From 98d8c5e09712042a51a2a79622bbce422b48c0ea Mon Sep 17 00:00:00 2001 From: jwj Date: Tue, 21 Jan 2025 10:01:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20topthink/think-filesys?= =?UTF-8?q?tem:3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a1a726d..8324160 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php": ">=8.0.0", "topthink/framework": "^8.0", "topthink/think-orm": "^3.0|^4.0", - "topthink/think-filesystem": "^2.0" + "topthink/think-filesystem": "^2.0|^3.0" }, "require-dev": { "topthink/think-dumper": "^1.0", -- Gitee From 49917ae7c0de3c7c12de367b99b671321c3c304c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 16 Jul 2025 11:09:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8F=82=E6=95=B0=20=E4=BF=AE=E6=94=B9=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- config/route.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8324160..22d37b8 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ }, "require-dev": { "topthink/think-dumper": "^1.0", - "topthink/think-trace": "^1.0" + "topthink/think-trace": "^2.0" }, "autoload": { "psr-4": { diff --git a/config/route.php b/config/route.php index 41ba1ed..729d7be 100644 --- a/config/route.php +++ b/config/route.php @@ -12,6 +12,8 @@ return [ 'url_route_must' => false, // 是否区分大小写 'url_case_sensitive' => false, + // 自动扫描子目录分组 + 'route_auto_group' => false, // 合并路由规则 'route_rule_merge' => false, // 路由是否完全匹配 @@ -47,5 +49,7 @@ return [ // 全局请求缓存排除规则 'request_cache_except' => [], // 请求缓存的Tag - 'request_cache_tag' => '', + 'request_cache_tag' => '', + // API版本header变量 + 'api_version' => 'Api-Version', ]; -- Gitee