From 53e6a2a6a0d2917461af32e9aa0e889fa0b6ff15 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 30 Sep 2020 11:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20HTTP=20=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=20URL=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/zoujingli/think-library/src/Library.php | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/zoujingli/think-library/src/Library.php b/vendor/zoujingli/think-library/src/Library.php index 9d92f7ca7..120a7d468 100644 --- a/vendor/zoujingli/think-library/src/Library.php +++ b/vendor/zoujingli/think-library/src/Library.php @@ -50,6 +50,7 @@ class Library extends Service { // 多应用中间键 $this->app->event->listen('HttpRun', function () { + $this->app->request->baseUrl(); /* 解决 HTTP 调用指令 URL 问题 */ $this->app->middleware->add(App::class); }); // 替换 ThinkPHP 地址处理