fix: 代码下载解压提示数据不完整问题修复

This commit is contained in:
Ray.Hao
2024-09-13 18:31:42 +08:00
parent e98ed47080
commit 93655d1915

View File

@@ -273,7 +273,8 @@ public class CodegenServiceImpl implements CodegenService {
for (String tableName : tableNames) {
generateAndZipCode(tableName, zip);
}
// 确保所有压缩数据写入输出流,避免数据残留在内存缓冲区引发的数据不完整
zip.finish();
return outputStream.toByteArray();
} catch (IOException e) {