ComposerUpdate

This commit is contained in:
Anyon 2020-11-03 21:06:02 +08:00
parent a02dd0b3e1
commit e258622de4
3 changed files with 7 additions and 6 deletions

View File

@ -941,12 +941,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "dcefe85f14c712583408aebf35c3e9dcb70b1e96"
"reference": "a82943543b07edf766267b888345bfa912cb2cee"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/dcefe85f14c712583408aebf35c3e9dcb70b1e96",
"reference": "dcefe85f14c712583408aebf35c3e9dcb70b1e96",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/a82943543b07edf766267b888345bfa912cb2cee",
"reference": "a82943543b07edf766267b888345bfa912cb2cee",
"shasum": "",
"mirrors": [
{
@ -963,7 +963,7 @@
"ext-mbstring": "*",
"topthink/framework": "^6.0"
},
"time": "2020-11-02T03:28:32+00:00",
"time": "2020-11-03T09:51:30+00:00",
"type": "library",
"extra": {
"think": {

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2020-11-02 11:34:57
// This file is automatically generated at:2020-11-03 21:05:50
declare (strict_types = 1);
return array (
0 => 'think\\admin\\Library',

View File

@ -97,6 +97,7 @@ class Library extends Service
$header['Access-Control-Allow-Origin'] = $origin;
$header['Access-Control-Allow-Methods'] = 'GET,POST,PATCH,PUT,DELETE';
$header['Access-Control-Allow-Headers'] = 'Authorization,Content-Type,If-Match,If-Modified-Since,If-None-Match,If-Unmodified-Since,X-Requested-With';
$header['Access-Control-Allow-Credentials'] = 'true';
$header['Access-Control-Expose-Headers'] = 'User-Form-Token,User-Token,Token';
}
// 访问模式及访问权限检查
@ -111,7 +112,7 @@ class Library extends Service
}
}, 'route');
}
// 动态加应用初始化系统函数
// 动态加应用初始化系统函数
[$ds, $base] = [DIRECTORY_SEPARATOR, $this->app->getBasePath()];
foreach (glob("{$base}*{$ds}sys.php") as $file) includeFile($file);
// 动态加载插件初始化系统函数