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
ab7e8280
Commit
ab7e8280
authored
Mar 13, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tax
parent
e3c9e34a
Pipeline
#4397
passed with stage
in 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cityList.js
app/schedule/cityList.js
+1
-1
notifyUrl.js
app/schedule/notifyUrl.js
+2
-1
No files found.
app/schedule/cityList.js
View file @
ab7e8280
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
schedule
:
{
interval
:
'
5
m'
,
// 5分钟间隔
interval
:
'
30
m'
,
// 5分钟间隔
type
:
'all'
,
// 所有woker
immediate
:
true
,
},
...
...
app/schedule/notifyUrl.js
View file @
ab7e8280
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
schedule
:
{
interval
:
'
5
m'
,
// 5分钟间隔
interval
:
'
30
m'
,
// 5分钟间隔
type
:
'all'
,
// 所有woker
immediate
:
true
,
},
...
...
@@ -11,6 +11,7 @@ module.exports = {
try
{
const
{
host
,
customerUrl
}
=
ctx
.
app
.
config
.
signatureAPI
;
const
notifyMap
=
new
Map
();
ctx
.
logger
.
info
(
'host'
,
host
,
'customerUrl'
,
customerUrl
)
const
ret
=
await
ctx
.
curl
(
host
+
customerUrl
,
{
charset
:
'utf-8'
,
timeout
:
[
'30s'
,
'30s'
],
...
...
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