From eba9bc0c72e93872ed48250d337463641ed15ee5 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 29 Oct 2020 15:46:45 +0800 Subject: [PATCH] ComposerUpdate --- vendor/composer/installed.json | 8 ++++---- .../zoujingli/think-library/src/service/NodeService.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 0418365ca..11ce0d209 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -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": { diff --git a/vendor/zoujingli/think-library/src/service/NodeService.php b/vendor/zoujingli/think-library/src/service/NodeService.php index 770741977..e1eebeafa 100644 --- a/vendor/zoujingli/think-library/src/service/NodeService.php +++ b/vendor/zoujingli/think-library/src/service/NodeService.php @@ -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}"; } // 获取应用前缀节点