fix: 代码下载解压提示数据不完整问题修复
This commit is contained in:
1 parent
e98ed47080
commit
93655d1915
1 file changed
+2
-1
@@ -273,7 +273,8 @@ public class CodegenServiceImpl implements CodegenService {
|
||||
for (String tableName : tableNames) {
|
||||
generateAndZipCode(tableName, zip);
|
||||
}
|
||||
|
||||
// 确保所有压缩数据写入输出流,避免数据残留在内存缓冲区引发的数据不完整
|
||||
zip.finish();
|
||||
return outputStream.toByteArray();
|
||||
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user