fix: 调整 package 下载文件名称为 filename
This commit is contained in:
@@ -65,7 +65,7 @@ public class PackageController {
|
||||
T.VerifyUtil.is(entity).notNull(RCode.SYS_RECORD_NOT_FOUND);
|
||||
|
||||
File pkgFile = T.FileUtil.file(entity.getPath());
|
||||
ResponseUtil.downloadFile(response, MediaType.APPLICATION_OCTET_STREAM_VALUE, entity.getName(), T.FileUtil.readBytes(pkgFile));
|
||||
ResponseUtil.downloadFile(response, MediaType.APPLICATION_OCTET_STREAM_VALUE, pkgFile.getName(), T.FileUtil.readBytes(pkgFile));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user