From 90803b73f781db5d42619082c4597afc58b2d4c5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 7 Oct 2019 20:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Think.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Think.php b/src/Think.php index d8e856b..02be10f 100644 --- a/src/Think.php +++ b/src/Think.php @@ -128,7 +128,7 @@ public function fetch(string $template, array $data = []): void if (is_dir($this->app->getAppPath() . $view)) { $path = $this->app->getAppPath() . $view . DIRECTORY_SEPARATOR; } else { - $appName = $this->app['request']->app(); + $appName = $this->app->http->getName(); $path = $this->app->getRootPath() . $view . DIRECTORY_SEPARATOR . ($appName ? $appName . DIRECTORY_SEPARATOR : ''); }