ComposerUpdate

This commit is contained in:
Anyon 2020-10-29 15:46:45 +08:00
parent a93730639c
commit eba9bc0c72
2 changed files with 7 additions and 7 deletions

View File

@ -941,12 +941,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "4871a421983c89e92e220ae9a30152b6cd6c4504"
"reference": "09c2992650ebd84dfb1de2e19a458119e219abda"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/4871a421983c89e92e220ae9a30152b6cd6c4504",
"reference": "4871a421983c89e92e220ae9a30152b6cd6c4504",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/09c2992650ebd84dfb1de2e19a458119e219abda",
"reference": "09c2992650ebd84dfb1de2e19a458119e219abda",
"shasum": "",
"mirrors": [
{
@ -963,7 +963,7 @@
"ext-mbstring": "*",
"topthink/framework": "^6.0"
},
"time": "2020-10-29T06:49:03+00:00",
"time": "2020-10-29T06:49:48+00:00",
"type": "library",
"extra": {
"think": {

View File

@ -47,9 +47,9 @@ class NodeService extends Service
*/
public function getCurrent(string $type = ''): string
{
$prefix = $this->app->http->getName();
$namespace = $this->app->getNamespace();
if (preg_match("|\\\\addons\\\\{$prefix}$|", $namespace)) {
$space = $this->app->getNamespace();
$prefix = strtolower($this->app->http->getName());
if (preg_match("|\\\\addons\\\\{$prefix}$|", $space)) {
$prefix = "addons-{$prefix}";
}
// 获取应用前缀节点