fix(解压): 解压缩会出现多余父目录修复
This commit is contained in:
parent
2e0aeb31e2
commit
0b1d3d3e22
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user