Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qaHome
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qaHome
Commits
dd3ecf9c
Commit
dd3ecf9c
authored
Jul 18, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
32dd4fc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
server_v2.js
app/qa-home/controller/docker/server_v2.js
+16
-15
server.js
app/qa-home/controller/testdata/server.js
+1
-1
No files found.
app/qa-home/controller/docker/server_v2.js
View file @
dd3ecf9c
...
@@ -675,21 +675,22 @@ function str2Object(str, def) {
...
@@ -675,21 +675,22 @@ function str2Object(str, def) {
items
.
sort
()
items
.
sort
()
for
(
let
i
of
items
)
{
// for (let i of items) {
if
(
def
==
1
)
{
// if (def == 1) {
item
.
push
({
// item.push({
label
:
i
,
// label: i,
select
:
false
// select: false
});
// });
}
else
{
// } else {
item2
[
i
]
=
true
// item2[i] = true
}
// }
}
// }
if
(
def
==
1
)
{
// if (def == 1) {
return
item
// return item
}
else
{
// } else {
return
item2
// return item2
}
// }
return
items
}
}
exports
.
get_systems_by_type
=
async
function
()
{
exports
.
get_systems_by_type
=
async
function
()
{
...
...
app/qa-home/controller/testdata/server.js
View file @
dd3ecf9c
...
@@ -459,7 +459,7 @@ exports.createID = async function () {
...
@@ -459,7 +459,7 @@ exports.createID = async function () {
do
{
do
{
java_info
=
await
requestPromise
(
new
get_person_from_acs
())
java_info
=
await
requestPromise
(
new
get_person_from_acs
())
}
}
while
(
typeof
java_info
!==
'
string
'
)
while
(
typeof
java_info
!==
'
string
'
||
java_info
.
indexOf
(
'
html
'
)
!==
-
1
)
try
{
try
{
java_info
=
JSON
.
parse
(
java_info
)
java_info
=
JSON
.
parse
(
java_info
)
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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