浏览代码

ComposerUpdate

Anyon 4 年之前
父节点
当前提交
eba9bc0c72
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 4 4
      vendor/composer/installed.json
  2. 3 3
      vendor/zoujingli/think-library/src/service/NodeService.php

+ 4 - 4
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": {

+ 3 - 3
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}";
         }
         // 获取应用前缀节点