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
80805edd
Commit
80805edd
authored
Mar 13, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
29ed0406
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
task.js
app/controller/task.js
+3
-2
cityList.js
app/schedule/cityList.js
+4
-3
notifyUrl.js
app/schedule/notifyUrl.js
+1
-1
config.local.js
config/config.local.js
+1
-1
No files found.
app/controller/task.js
View file @
80805edd
...
...
@@ -54,6 +54,7 @@ class TaskController extends Controller {
const
{
ctx
,
service
}
=
this
;
ctx
.
validate
(
this
.
createRule
);
const
{
scriptId
,
orderId
,
userId
}
=
ctx
.
request
.
body
;
ctx
.
logger
.
info
(
typeof
(
ctx
.
app
.
cityTypeLists
),
'cityTypeLists'
,
ctx
.
app
.
cityTypeLists
.
length
)
for
(
let
item
of
ctx
.
app
.
cityTypeLists
){
if
(
item
.
id
===
scriptId
){
ctx
.
app
.
channelType
=
item
.
type
;
...
...
@@ -182,8 +183,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);
ctx
.
success
({
code
:
0
,
data
:
ctx
.
app
.
cityLists
...
...
app/schedule/cityList.js
View file @
80805edd
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
schedule
:
{
interval
:
'
30
m'
,
// 5分钟间隔
interval
:
'
5
m'
,
// 5分钟间隔
type
:
'all'
,
// 所有woker
immediate
:
true
,
},
...
...
@@ -21,7 +21,7 @@ module.exports = {
contentType
:
'json'
,
gzip
:
true
});
ctx
.
logger
.
info
(
'
newhost'
,
newhost
+
cityConfigUrl
,
JSON
.
stringify
(
newret
.
data
.
code
));
ctx
.
logger
.
info
(
'
cityList--newhost'
,
newhost
,
JSON
.
stringify
(
newret
.
data
.
code
));
if
(
newret
.
data
.
code
===
0
)
{
newret
.
data
.
data
.
map
(
Prov
=>
{
Prov
.
citys
.
map
(
city
=>
{
...
...
@@ -37,7 +37,7 @@ module.exports = {
contentType
:
'json'
,
gzip
:
true
});
ctx
.
logger
.
info
(
'
host'
,
host
+
cityConfigUrl
,
JSON
.
stringify
(
ret
.
data
.
code
));
ctx
.
logger
.
info
(
'
cityList--host'
,
host
,
JSON
.
stringify
(
ret
.
data
.
code
));
if
(
ret
.
data
.
code
===
0
)
{
cityLists
=
[];
cityTypeLists
=
[];
...
...
@@ -71,6 +71,7 @@ module.exports = {
});
cityLists
.
push
(
newProv
);
});
ctx
.
logger
.
info
(
'cityLists'
,
cityLists
.
length
,
'cityTypeLists'
,
cityTypeLists
[
0
])
ctx
.
app
.
cityLists
=
cityLists
;
ctx
.
app
.
cityTypeLists
=
cityTypeLists
;
}
...
...
app/schedule/notifyUrl.js
View file @
80805edd
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
schedule
:
{
interval
:
'
30
m'
,
// 5分钟间隔
interval
:
'
5
m'
,
// 5分钟间隔
type
:
'all'
,
// 所有woker
immediate
:
true
,
},
...
...
config/config.local.js
View file @
80805edd
...
...
@@ -4,7 +4,7 @@ module.exports = () => {
const
config
=
exports
=
{};
config
.
debug
=
true
;
config
.
projectRootPath
=
'/
IncomeTax
'
;
config
.
projectRootPath
=
'/
taxh5
'
;
config
.
redis
=
{
client
:
{
...
...
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