Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
taxh5
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
data_server
taxh5
Commits
a8370d71
Commit
a8370d71
authored
Mar 13, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cityList.js
parent
4cfda883
Pipeline
#4417
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cityList.js
app/schedule/cityList.js
+6
-2
No files found.
app/schedule/cityList.js
View file @
a8370d71
...
...
@@ -22,12 +22,16 @@ module.exports = {
gzip
:
true
});
ctx
.
logger
.
info
(
'cityList--newhost'
,
newhost
,
JSON
.
stringify
(
newret
.
data
.
code
));
if
(
newret
.
data
.
code
===
0
)
{
if
(
newret
.
data
.
code
==
0
)
{
ctx
.
logger
.
info
(
'newret-start'
)
newret
.
data
.
data
.
map
(
Prov
=>
{
Prov
.
citys
.
map
(
city
=>
{
newCityMap
.
set
(
String
(
city
.
id
),
city
)
})
})
ctx
.
logger
.
info
(
'newCityMap'
,
newCityMap
)
}
else
{
ctx
.
logger
.
info
(
'newCityMap- fail'
)
}
const
ret
=
await
ctx
.
curl
(
host
+
cityConfigUrl
,
{
...
...
@@ -38,7 +42,7 @@ module.exports = {
gzip
:
true
});
ctx
.
logger
.
info
(
'cityList--host'
,
host
,
JSON
.
stringify
(
ret
.
data
.
code
));
if
(
ret
.
data
.
code
==
=
0
)
{
if
(
ret
.
data
.
code
==
0
)
{
cityLists
=
[];
cityTypeLists
=
[];
ctx
.
logger
.
info
(
'start'
)
...
...
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