Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-manager
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
赵啸非
setup-manager
Commits
851fc319
Commit
851fc319
authored
Nov 19, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加php健康度检测
parent
46c1a90c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupProjectServiceImpl.java
...hx/module/setup/service/impl/SetupProjectServiceImpl.java
+5
-6
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupProjectServiceImpl.java
View file @
851fc319
...
@@ -155,7 +155,10 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
...
@@ -155,7 +155,10 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
//查看zip文件是否存在
//查看zip文件是否存在
String
sourceUiZipPath
=
path
+
".zip"
;
String
sourceUiZipPath
=
path
+
".zip"
;
File
uiZipFile
=
new
File
(
sourceUiZipPath
);
File
uiZipFile
=
new
File
(
sourceUiZipPath
);
File
destDir
=
new
File
(
setupProjectEntity
.
getProjectPath
());
File
destDir
=
new
File
(
setupProjectEntity
.
getProjectPath
()+
setupProjectEntity
.
getProjectCode
());
if
(!
destDir
.
exists
())
{
destDir
.
mkdir
();
}
log
.
info
(
"tar文件存在:{},文件路径:{},zip文件存在:{},文件路径:{}"
,
uiFile
.
exists
(),
sourceUiPath
,
uiZipFile
.
exists
(),
sourceUiZipPath
);
log
.
info
(
"tar文件存在:{},文件路径:{},zip文件存在:{},文件路径:{}"
,
uiFile
.
exists
(),
sourceUiPath
,
uiZipFile
.
exists
(),
sourceUiZipPath
);
if
(
uiFile
.
exists
())
{
if
(
uiFile
.
exists
())
{
//解压tar.gz
//解压tar.gz
...
@@ -168,11 +171,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
...
@@ -168,11 +171,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
ua
.
setDestDirectory
(
destDir
);
ua
.
setDestDirectory
(
destDir
);
ua
.
extract
();
ua
.
extract
();
}
else
if
(
uiZipFile
.
exists
())
{
}
else
if
(
uiZipFile
.
exists
())
{
File
destDirZip
=
new
File
(
setupProjectEntity
.
getProjectPath
()
+
setupProjectEntity
.
getProjectCode
());
ZipUtil
.
unzip
(
uiZipFile
,
destDir
);
if
(!
destDirZip
.
exists
())
{
destDirZip
.
mkdir
();
}
ZipUtil
.
unzip
(
uiZipFile
,
destDirZip
);
}
else
{
}
else
{
throw
new
AppException
(
"请上传项目工程资源文件!"
);
throw
new
AppException
(
"请上传项目工程资源文件!"
);
}
}
...
...
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