Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
freemud-coupon-export
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
秦嘉祺
freemud-coupon-export
Commits
d50708b0
Commit
d50708b0
authored
Jul 03, 2020
by
QJQ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除压缩密码
parent
eb7793e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
.gitignore
+2
-0
Freemud.Coupon.ExportCode/Utils/ZipUtils.cs
+1
-1
No files found.
.gitignore
View file @
d50708b0
/.vs
/.vs
/Freemud.Coupon.ExportCode/obj
/Freemud.Coupon.ExportCode/bin
Freemud.Coupon.ExportCode/Utils/ZipUtils.cs
View file @
d50708b0
...
@@ -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
))
//如果是目录
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment