桌码下载修复linux下下载不正常测试

This commit is contained in:
张松 2025-02-28 10:24:16 +08:00
parent c3fd6ca6b3
commit d78fc8dcbb
1 changed files with 2 additions and 1 deletions

View File

@ -151,11 +151,12 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
byte[] byteArray = qrBytesList.get(i);
zipOut.write(byteArray, 0, byteArray.length);
zipOut.flush();
// 确保每个条目被正确关闭
zipOut.closeEntry();
}
zipOut.finish();
zipOut.flush();
}
}