Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
install.api
Commits
d51e9dc5
Commit
d51e9dc5
authored
Apr 08, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改状态
parent
faec2864
Pipeline
#22327
failed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
application_service.py
app/application/application_service.py
+3
-2
No files found.
app/application/application_service.py
View file @
d51e9dc5
...
@@ -145,6 +145,7 @@ where B.default_version=1'''
...
@@ -145,6 +145,7 @@ where B.default_version=1'''
app_dict
=
json
.
loads
(
app_str
,
encoding
=
'utf8'
)
app_dict
=
json
.
loads
(
app_str
,
encoding
=
'utf8'
)
app_code
=
app_dict
.
get
(
'app_code'
)
app_code
=
app_dict
.
get
(
'app_code'
)
_dict
[
'app_code'
]
=
app_code
_dict
[
'app_code'
]
=
app_code
_dict
[
'status'
]
=
'未测试'
api_port
=
app_dict
.
get
(
'api_port'
)
api_port
=
app_dict
.
get
(
'api_port'
)
if
api_port
:
if
api_port
:
_dict
[
'port'
]
=
api_port
_dict
[
'port'
]
=
api_port
...
@@ -177,9 +178,9 @@ where B.default_version=1'''
...
@@ -177,9 +178,9 @@ where B.default_version=1'''
info_dict
[
'app_code'
]
=
port_info
[
'app_code'
]
info_dict
[
'app_code'
]
=
port_info
[
'app_code'
]
try
:
try
:
self
.
test_connect_port
(
host_ip
,
port_info
[
'port'
])
self
.
test_connect_port
(
host_ip
,
port_info
[
'port'
])
info_dict
[
's
uccess'
]
=
True
info_dict
[
's
tatus'
]
=
'测试通过'
except
Exception
:
except
Exception
:
info_dict
[
's
uccess'
]
=
False
info_dict
[
's
tatus'
]
=
'测试失败'
info_list
.
append
(
info_dict
)
info_list
.
append
(
info_dict
)
return
info_list
return
info_list
...
...
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