Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
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
gjjh5
Commits
cf7528cd
Commit
cf7528cd
authored
Jun 05, 2020
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调度器修改地址
parent
397276bc
Pipeline
#24567
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
task.js
app/service/task.js
+6
-2
config.local.js
config/config.local.js
+6
-5
config.prod.js
config/config.prod.js
+6
-5
No files found.
app/service/task.js
View file @
cf7528cd
...
...
@@ -59,8 +59,12 @@ class TaskService extends Service {
async
fetchCapture
({
taskId
,
type
})
{
const
{
taskAPI
,
ctx
}
=
this
;
const
{
fetchCodeUrl
}
=
taskAPI
;
const
result
=
await
this
.
_request
(
fetchCodeUrl
,
{
const
{
fetchCodeUrl
,
fetchPhoneCodeUrl
}
=
taskAPI
;
let
url
=
fetchCodeUrl
;
if
(
type
==
'phone_code'
)
{
url
=
fetchPhoneCodeUrl
;
}
const
result
=
await
this
.
_request
(
url
,
{
method
:
'post'
,
data
:
{
taskId
,
...
...
config/config.local.js
View file @
cf7528cd
...
...
@@ -20,11 +20,12 @@ module.exports = () => {
appSecret
:
'6bc693e3ce84478482880a3600c9a78c'
,
};
config
.
taskAPI
=
{
host
:
'http://tm.51gjj.com:4831'
,
createTaskUrl
:
'/gjjServices/createGjjTask'
,
fetchCodeUrl
:
'/gjjServices/queryGjjCode'
,
submitTaskUrl
:
'/gjjServices/queryGjj'
,
fetchTaskUrl
:
'/gjjServices/getGjjData'
,
host
:
'https://uat-nginx.jianbing.com/scheduler-service'
,
createTaskUrl
:
'/create'
,
fetchCodeUrl
:
'/code'
,
fetchPhoneCodeUrl
:
'/phonecode'
,
submitTaskUrl
:
'/query'
,
fetchTaskUrl
:
'/data'
,
};
config
.
partnerAPI
=
{
...
...
config/config.prod.js
View file @
cf7528cd
...
...
@@ -24,11 +24,12 @@ module.exports = () => {
appSecret
:
'6bc693e3ce84478482880a3600c9a78c'
,
};
config
.
taskAPI
=
{
host
:
process
.
env
.
TASKAPI_HOST
||
'http://tm.51gjj.com:4831'
,
createTaskUrl
:
'/gjjServices/createGjjTask'
,
fetchCodeUrl
:
'/gjjServices/queryGjjCode'
,
submitTaskUrl
:
'/gjjServices/queryGjj'
,
fetchTaskUrl
:
'/gjjServices/getGjjData'
,
host
:
process
.
env
.
TASKAPI_HOST
||
'https://uat-nginx.jianbing.com/scheduler-service'
,
createTaskUrl
:
'/create'
,
fetchCodeUrl
:
'/code'
,
fetchPhoneCodeUrl
:
'/phonecode'
,
submitTaskUrl
:
'/query'
,
fetchTaskUrl
:
'/data'
,
};
config
.
scriptsAPI
=
{
...
...
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