|
@@ -205,8 +205,9 @@ public class JmgaServiceImpl implements IJmgaService {
|
|
|
String uuid = UUID.randomUUID().toString();
|
|
|
String zipName = uuid + ".zip";
|
|
|
String zipDir = "/oss/4dkankan/bd_server/";
|
|
|
- fYunFileService.downloadFileByCommand(zipDir + zipName, param.getFilePath().replace("/oss/", ""));
|
|
|
- fYunFileService.deleteFile(param.getFilePath());
|
|
|
+ String zipKey = param.getFilePath().replace("/oss/", "");
|
|
|
+ fYunFileService.downloadFileByCommand(zipDir + zipName, zipKey);
|
|
|
+ fYunFileService.deleteFile(zipKey);
|
|
|
|
|
|
//解压缩
|
|
|
String unzipCmd = "unzip -P " + ZipConstant.zipPassword + " " + zipDir + zipName + " -d " + zipDir + uuid;
|