mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
ComposerUpdate
This commit is contained in:
parent
52b733741b
commit
d7db804b89
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -833,12 +833,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "c233ebc4db95c154a297a1ba3b915826937ec2a0"
|
||||
"reference": "97fc43a5d602d7477c61022003042b1e3535ebce"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/c233ebc4db95c154a297a1ba3b915826937ec2a0",
|
||||
"reference": "c233ebc4db95c154a297a1ba3b915826937ec2a0",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/97fc43a5d602d7477c61022003042b1e3535ebce",
|
||||
"reference": "97fc43a5d602d7477c61022003042b1e3535ebce",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -855,7 +855,7 @@
|
||||
"ext-mbstring": "*",
|
||||
"topthink/framework": "^6.0"
|
||||
},
|
||||
"time": "2020-10-10T06:38:45+00:00",
|
||||
"time": "2020-10-13T08:48:27+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"think": {
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// This file is automatically generated at:2020-10-12 11:32:23
|
||||
// This file is automatically generated at:2020-10-13 16:53:18
|
||||
declare (strict_types = 1);
|
||||
return array (
|
||||
0 => 'think\\admin\\Library',
|
||||
|
@ -48,12 +48,15 @@ class Library extends Service
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// 多应用中间键
|
||||
// 多应用中间键处理
|
||||
$this->app->event->listen('HttpRun', function () {
|
||||
$this->app->request->baseUrl(); /* 解决 HTTP 调用指令 URL 问题 */
|
||||
$this->app->middleware->add(App::class);
|
||||
// 解决 HTTP 模式下调用 Console 之后 URL 生成问题
|
||||
if (!$this->app->request->isCli() && !$this->app->config->get('app.url')) {
|
||||
$this->app->config->set(['url' => $this->app->request->url(true)], 'app');
|
||||
}
|
||||
});
|
||||
// 替换 ThinkPHP 地址处理
|
||||
// 替换 ThinkPHP 地址
|
||||
$this->app->bind('think\route\Url', Url::class);
|
||||
// 替换 ThinkPHP 指令
|
||||
$this->commands(['build' => Build::class, 'clear' => Clear::class]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user