fix(解压): 解压缩会出现多余父目录修复

This commit is contained in:
MAC 2021-09-14 22:13:26 +08:00
parent 2e0aeb31e2
commit 0b1d3d3e22

View File

@ -112,7 +112,7 @@ public class FileService extends ServiceImpl<FileMapper, FileBean> implements IF
destFile.delete();
}
if (!fileEntryNameList.isEmpty()) {
if (!fileEntryNameList.isEmpty() && unzipMode == 1) {
UserFile qiwenDir = QiwenFileUtil.getQiwenDir(userFile.getUserId(), userFile.getFilePath(), userFile.getFileName());
userFileMapper.insert(qiwenDir);
}