Explorar o código

调整解压缩BUG

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
cb5f87befe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UAS-MES/PublicMethod/ZipHelper.cs

+ 1 - 1
UAS-MES/PublicMethod/ZipHelper.cs

@@ -49,8 +49,8 @@ namespace UAS_MES.PublicMethod
                             byte[] data = new byte[size];
                             while (size > 0)
                             {
-                                streamWriter.Write(data, 0, size);
                                 size = s.Read(data, 0, data.Length);
+                                streamWriter.Write(data, 0, size);
                             }
                         }
                     }