fix: rar下载后打不开的问题
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ public class DownloadDecryptFileServiceImpl implements DownloadDecryptFileServic
|
||||
// 判断fileDecrypt是不是zip压缩包,如果是压缩包的话则不加密
|
||||
boolean isZipFile = false;
|
||||
String originalFileName = fileDecrypt.getOriginalFilename();
|
||||
if (originalFileName != null && originalFileName.endsWith(".zip")) {
|
||||
if (originalFileName != null && (originalFileName.endsWith(".zip") || originalFileName.endsWith(".rar"))) {
|
||||
isZipFile = true;
|
||||
}
|
||||
if (isZipFile) {
|
||||
|
||||
Reference in New Issue
Block a user