diff --git a/src/ZM/Command/Plugin/PluginInstallCommand.php b/src/ZM/Command/Plugin/PluginInstallCommand.php index 76c5a00d..9c2aef47 100644 --- a/src/ZM/Command/Plugin/PluginInstallCommand.php +++ b/src/ZM/Command/Plugin/PluginInstallCommand.php @@ -98,7 +98,7 @@ class PluginInstallCommand extends PluginCommand // 使用内建 Composer if (file_exists(WORKING_DIR . '/runtime/composer.phar')) { $this->info('使用内建 Composer'); - passthru('php ' . escapeshellarg(WORKING_DIR . '/runtime/composer.phar') . ' install --no-dev', $code); + passthru(PHP_BINARY . ' ' . escapeshellarg(WORKING_DIR . '/runtime/composer.phar') . ' install --no-dev', $code); } else { $this->info('使用系统 Composer'); passthru('composer install --no-dev', $code);