Explorar el Código

fix(extension): 扩展路径添加DIRECTORY_SEPARATOR

runphp hace 7 meses
padre
commit
19d306c300
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/Helper.php

+ 3 - 3
src/Helper.php

@@ -162,9 +162,9 @@ final class Helper
         $extensionName = CoreService::$extensionComposerMap[$extensionID]['name'];
         $versions = Plugin::getInstalledSixShopExtensions()['versions'];
 
-        return isset($versions[$extensionName]['install_path'])
-            ? realpath($versions[$extensionName]['install_path'])
-            : CoreService::$extensionPath . $extensionID . DIRECTORY_SEPARATOR;
+        return (isset($versions[$extensionName]['install_path'])
+                ? realpath($versions[$extensionName]['install_path'])
+                : CoreService::$extensionPath . $extensionID) . DIRECTORY_SEPARATOR;
 
     }