|
|
@@ -3,7 +3,7 @@ declare(strict_types=1);
|
|
|
|
|
|
namespace SixShop\System\Command;
|
|
|
|
|
|
-use SixShop\Core\Helper;
|
|
|
+use function SixShop\Core\extension_path;
|
|
|
use think\console\Command;
|
|
|
use think\console\Input;
|
|
|
use think\console\input\Argument;
|
|
|
@@ -59,7 +59,7 @@ class ExtensionScaffoldMakeCommand extends Command
|
|
|
// $withFFI 默认为 false,避免环境未开启 FFI 导致构建失败
|
|
|
}
|
|
|
|
|
|
- $base = rtrim(Helper::extension_path($module), '/');
|
|
|
+ $base = rtrim(extension_path($module), '/');
|
|
|
if (is_dir($base) && !$force) {
|
|
|
$output->error("扩展 {$module} 已存在:{$base},可使用 --force 覆盖写入");
|
|
|
return 1;
|