diff --git a/niucloud/route/app.php b/niucloud/route/app.php index 8522a951783e79427fdb0caa4b437bb6bb890af1..f6acfb94bec19c06b8522287577a55d96bd37c50 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(); });