|
@@ -73,7 +73,7 @@ public class GzZcdjzxServiceImpl implements GzZcdjzxService {
|
|
|
String ossHomeAbsolutePath = LocalConstants.BASE_PATH + fYunFileConfig.getBucket() + "/" + ossHomePath;
|
|
|
String zipName = dataPoint.replaceAll("#", "_") + ".zip";
|
|
|
httpClient.downloadFile(url, ossHomeAbsolutePath, zipName);
|
|
|
- String unzipCmd = "unzip -O GBK " + ossHomeAbsolutePath + zipName + " -d " + ossHomeAbsolutePath;
|
|
|
+ String unzipCmd = "unzip -o -O GBK " + ossHomeAbsolutePath + zipName + " -d " + ossHomeAbsolutePath;
|
|
|
CmdUtils.callLine(unzipCmd);
|
|
|
//解压后删除压缩包
|
|
|
FileUtil.del(ossHomeAbsolutePath + zipName);
|