Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
75708ebb
Commit
75708ebb
authored
May 25, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'taskexecutor' of gitlab.gongsibao.com:jiangyong/zhichan into taskexecutor
parents
8159666a
32a57493
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
taskexecutor/app/base/db/task/tm/tasktm2fq.js
+36
-0
taskexecutor/app/config/settings.js
+7
-0
No files found.
taskexecutor/app/base/db/task/tm/tasktm2fq.js
0 → 100644
View file @
75708ebb
const
TaskBase
=
require
(
"../../task.base"
);
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
Tasktm2fq
extends
TaskBase
{
constructor
()
{
super
(
TaskBase
.
getServiceName
(
Tasktm2fq
));
this
.
restclient
=
system
.
getObject
(
"util.restClient"
);
this
.
fqbossUrl
=
settings
.
fqbossUrl
();
}
async
beforeTask
(
params
)
{
console
.
log
(
"前置操作......"
,
this
.
serviceName
);
//this.isThrough=true;
//console.log(this.cacheManager);
}
async
subDoTask
()
{
console
.
log
(
"--------------"
);
console
.
log
(
"TestTask1....."
);
var
obj
=
{
"actionType"
:
"Taskalitmupdate"
,
"actionBody"
:
{
"limit"
:
100
//推送数据条数 默认100条
}
}
try
{
var
url
=
this
.
fqbossUrl
+
"web/tmInfoPusherCtl/pushInfo"
;
var
rtn
=
await
this
.
restclient
.
execPost
(
obj
,
url
);
console
.
log
(
rtn
);
return
rtn
;
}
catch
(
error
)
{
console
.
log
(
error
);
return
null
;
}
}
}
module
.
exports
=
Tasktm2fq
;
\ No newline at end of file
taskexecutor/app/config/settings.js
View file @
75708ebb
...
...
@@ -50,6 +50,13 @@ var settings = {
return
"http://center-channel-service.chaolai/"
;
}
},
fqbossUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.0.106:4012/"
;
}
else
{
return
"http://fqboss-service.chaolai/"
;
}
},
reqTransferurl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.18.61:3003/"
;
...
...
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