From 8e839518874de95530d42ad396196bb8bb9eca08 Mon Sep 17 00:00:00 2001 From: Git <1451544363@qq.com> Date: Fri, 26 Jan 2024 02:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=96=87=E4=BB=B6=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- niucloud/route/app.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/niucloud/route/app.php b/niucloud/route/app.php index 8522a9517..f6acfb94b 100644 --- a/niucloud/route/app.php +++ b/niucloud/route/app.php @@ -46,5 +46,7 @@ Route::rule('web', function () { })->pattern(['any' => '\w+']); //用于公众号授权证书 Route::any('MP_verify_.txt', function ($name) { - echo $name; + // 返回请求头文件类型是txt + header('Content-Type: text/plain; charset=utf-8'); + echo $name;exit(); }); -- Gitee