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
062be9fa
Commit
062be9fa
authored
Mar 20, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taxH5 fix
parent
d7eb204f
Pipeline
#4743
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
19 deletions
+3
-19
task.js
app/controller/task.js
+2
-2
notifyUrl.js
app/schedule/notifyUrl.js
+1
-1
task.js
app/service/task.js
+0
-16
No files found.
app/controller/task.js
View file @
062be9fa
...
...
@@ -179,8 +179,8 @@ class TaskController extends Controller {
async
cityConfigs
()
{
const
{
ctx
,
service
}
=
this
;
//
ctx.validate(this.cityConfigRule);
//
await service.signature.signatureCheck(ctx.request.body);
ctx
.
validate
(
this
.
cityConfigRule
);
await
service
.
signature
.
signatureCheck
(
ctx
.
request
.
body
);
const
result
=
await
service
.
task
.
getCityList
();
ctx
.
success
({
code
:
0
,
...
...
app/schedule/notifyUrl.js
View file @
062be9fa
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
schedule
:
{
interval
:
'
1440m'
,
// 5
分钟间隔
interval
:
'
60m'
,
// 测试60
分钟间隔
type
:
'all'
,
// 所有woker
immediate
:
true
,
},
...
...
app/service/task.js
View file @
062be9fa
...
...
@@ -131,26 +131,10 @@ class TaskService extends Service {
state
:
city
.
state
,
queryParam
:
city
.
queryParam
});
// cityTypeLists.push({
// province: city.province,
// name: city.name,
// id: city.id,
// state: city.state,
// type: city.type,
// });
let
obj
=
{
province
:
city
.
province
,
name
:
city
.
name
,
id
:
city
.
id
,
state
:
city
.
state
,
type
:
city
.
type
}
ctx
.
app
.
redis
.
set
(
city
.
id
,
city
.
type
,
"EX"
,
3600
)
});
cityLists
.
push
(
newProv
);
});
// await ctx.app.redis.set('cityTypeLists', cityTypeLists, "EX", 3600);
// ctx.logger.info(ctx.app.redis.get(1))
return
cityLists
;
}
}
...
...
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