update:更新上传模块

This commit is contained in:
JaguarJack 2020-08-10 11:15:12 +08:00
parent ea6e45450c
commit 2f76d0da38

View File

@ -173,7 +173,7 @@ class UploadCatchModuleCommand extends Command
{ {
$composerZip = $this->compressZipPath() . $this->module . '_' . time() . '.zip'; $composerZip = $this->compressZipPath() . $this->module . '_' . time() . '.zip';
(new Compress())->dirToZip($this->path, $composerZip); (new Compress())->moduleToZip($this->path, $composerZip);
$this->output->info('compress module ' . $this->module . ' successfully'); $this->output->info('compress module ' . $this->module . ' successfully');
return $composerZip; return $composerZip;
@ -192,7 +192,7 @@ class UploadCatchModuleCommand extends Command
return root_path($path) . $this->module. DIRECTORY_SEPARATOR; return root_path($path) . $this->module. DIRECTORY_SEPARATOR;
} }
return CatchAdmin::moduleSeedsDirectory($this->module); return CatchAdmin::moduleDirectory($this->module);
} }
/** /**