Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
ddd70219
Commit
ddd70219
authored
Nov 21, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同步事项
parent
8948c425
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
portal-manager/src/main/java/com/mortals/xhx/module/uploadfile/web/UploadfileController.java
...rtals/xhx/module/uploadfile/web/UploadfileController.java
+2
-2
No files found.
portal-manager/src/main/java/com/mortals/xhx/module/uploadfile/web/UploadfileController.java
View file @
ddd70219
...
@@ -124,7 +124,7 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
...
@@ -124,7 +124,7 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
File
file
=
new
File
(
filePath
);
File
file
=
new
File
(
filePath
);
if
(
file
.
exists
())
{
if
(
file
.
exists
())
{
try
{
try
{
zip
.
putNextEntry
(
new
ZipEntry
(
StrUtil
.
subAfter
(
docFileUrl
,
"/"
,
false
)
));
zip
.
putNextEntry
(
new
ZipEntry
(
filePath
));
IOUtils
.
write
(
FileUtil
.
readBytes
(
file
),
zip
);
IOUtils
.
write
(
FileUtil
.
readBytes
(
file
),
zip
);
zip
.
flush
();
zip
.
flush
();
zip
.
closeEntry
();
zip
.
closeEntry
();
...
@@ -142,7 +142,7 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
...
@@ -142,7 +142,7 @@ public class UploadfileController extends BaseCRUDJsonBodyMappingController<Uplo
File
file
=
new
File
(
filePath
);
File
file
=
new
File
(
filePath
);
if
(
file
.
exists
())
{
if
(
file
.
exists
())
{
try
{
try
{
zip
.
putNextEntry
(
new
ZipEntry
(
StrUtil
.
subAfter
(
appFileUrl
,
"/"
,
false
)
));
zip
.
putNextEntry
(
new
ZipEntry
(
filePath
));
IOUtils
.
write
(
FileUtil
.
readBytes
(
file
),
zip
);
IOUtils
.
write
(
FileUtil
.
readBytes
(
file
),
zip
);
zip
.
flush
();
zip
.
flush
();
zip
.
closeEntry
();
zip
.
closeEntry
();
...
...
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