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

View File

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