Commit d50708b0 by QJQ

去除压缩密码

parent eb7793e6
/.vs /.vs
/Freemud.Coupon.ExportCode/obj
/Freemud.Coupon.ExportCode/bin
...@@ -96,7 +96,7 @@ namespace Freemud.Coupon.ExportCode.Utils ...@@ -96,7 +96,7 @@ namespace Freemud.Coupon.ExportCode.Utils
{ {
using (ZipFile zip = new ZipFile(Encoding.UTF8))//设置编码,解决压缩文件时中文乱码 using (ZipFile zip = new ZipFile(Encoding.UTF8))//设置编码,解决压缩文件时中文乱码
{ {
zip.Password = password; //zip.Password = password;
string fileName = Path.GetFileName(path);//取目录名称 string fileName = Path.GetFileName(path);//取目录名称
if (Directory.Exists(path)) //如果是目录 if (Directory.Exists(path)) //如果是目录
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment