解决 HTTP 调用指令 URL 问题

This commit is contained in:
Anyon 2020-09-30 11:28:03 +08:00
parent 50d3420043
commit 53e6a2a6a0

View File

@ -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 地址处理