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
8fdc5d85
Commit
8fdc5d85
authored
Jun 20, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
2c6f7107
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
116 deletions
+19
-116
center-taskexecutor/app/base/db/task/alichannel/aliicapiTask.js
+0
-39
center-taskexecutor/app/base/db/task/alichannel/taskPushPublicService.js
+0
-39
center-taskexecutor/app/base/db/task/businesschance/zcbusinessTask.js
+0
-38
center-taskexecutor/app/base/db/task/icp/testTask.js
+19
-0
No files found.
center-taskexecutor/app/base/db/task/alichannel/aliicapiTask.js
deleted
100644 → 0
View file @
2c6f7107
const
TaskBase
=
require
(
"../../task.base"
);
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
AliicapiTask
extends
TaskBase
{
constructor
()
{
super
(
TaskBase
.
getServiceName
(
AliicapiTask
));
this
.
restclient
=
system
.
getObject
(
"util.restClient"
);
}
async
beforeTask
(
params
)
{
console
.
log
(
"前置操作......"
,
this
.
serviceName
);
//this.isThrough=true;
//console.log(this.cacheManager);
}
async
subDoTask
()
{
console
.
log
(
"--------------"
);
console
.
log
(
"TestTask1....."
);
var
obj
=
{
"actionType"
:
"taskpolicyneed2fq"
,
"actionBody"
:
{
"limit"
:
100
//推送数据条数 默认100条
}
}
try
{
var
url
=
settings
.
centerChannelUrl
()
+
"api/auth/taskapi/taskAliIcapi"
;
var
icinfo
=
await
this
.
restclient
.
execPost
(
obj
,
url
);
console
.
log
(
icinfo
);
return
icinfo
;
}
catch
(
error
)
{
console
.
log
(
error
);
return
null
;
}
}
}
module
.
exports
=
AliicapiTask
;
// var a=new AliicapiTask();
// a.subDoTask();
\ No newline at end of file
center-taskexecutor/app/base/db/task/alichannel/taskPushPublicService.js
deleted
100644 → 0
View file @
2c6f7107
const
TaskBase
=
require
(
"../../task.base"
);
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
TaskPushPublicService
extends
TaskBase
{
constructor
()
{
super
(
TaskBase
.
getServiceName
(
TaskPushPublicService
));
this
.
restclient
=
system
.
getObject
(
"util.restClient"
);
}
async
beforeTask
(
params
)
{
console
.
log
(
"前置操作......"
,
this
.
serviceName
);
//this.isThrough=true;
//console.log(this.cacheManager);
}
async
subDoTask
()
{
console
.
log
(
"--------------"
);
console
.
log
(
"TestTask1....."
);
var
obj
=
{
"actionType"
:
"taskpolicyneed2fq"
,
"actionBody"
:
{
"limit"
:
100
//推送数据条数 默认100条
}
}
try
{
var
url
=
settings
.
centerChannelUrl
()
+
"api/auth/taskapi/taskPushPublicService"
;
var
icinfo
=
await
this
.
restclient
.
execPost
(
obj
,
url
);
console
.
log
(
icinfo
);
return
icinfo
;
}
catch
(
error
)
{
console
.
log
(
error
);
return
null
;
}
}
}
module
.
exports
=
TaskPushPublicService
;
// var a=new AliicapiTask();
// a.subDoTask();
\ No newline at end of file
center-taskexecutor/app/base/db/task/businesschance/zcbusinessTask.js
deleted
100644 → 0
View file @
2c6f7107
const
TaskBase
=
require
(
"../../task.base"
);
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
ZcbusinessTask
extends
TaskBase
{
constructor
()
{
super
(
TaskBase
.
getServiceName
(
ZcbusinessTask
));
this
.
restclient
=
system
.
getObject
(
"util.restClient"
);
this
.
centerOrderUrl
=
settings
.
centerOrderUrl
();
}
async
beforeTask
(
params
)
{
console
.
log
(
"前置操作......"
,
this
.
serviceName
);
//this.isThrough=true;
//console.log(this.cacheManager);
}
async
subDoTask
()
{
console
.
log
(
"--------------"
);
console
.
log
(
"TestTask1....."
);
var
obj
=
{
"actionType"
:
"taskpolicyneed2fq"
,
"actionBody"
:
{
"limit"
:
100
//推送数据条数 默认100条
}
}
try
{
var
url
=
this
.
centerOrderUrl
+
"action/policy/springBoard"
;
var
zcinfo
=
await
this
.
restclient
.
execPost
(
obj
,
url
);
console
.
log
(
zcinfo
);
var
result
=
JSON
.
parse
(
zcinfo
.
stdout
);
console
.
log
(
result
);
return
result
;
}
catch
(
error
)
{
console
.
log
(
error
);
return
null
;
}
}
}
module
.
exports
=
ZcbusinessTask
;
\ No newline at end of file
center-taskexecutor/app/base/db/task/icp/testTask.js
0 → 100644
View file @
8fdc5d85
const
TaskBase
=
require
(
"../../task.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
var
excel
=
require
(
'exceljs'
);
const
system
=
require
(
"../../../system"
);
const
fs
=
require
(
'fs'
);
class
TestTask
extends
TaskBase
{
constructor
(){
super
(
TaskBase
.
getServiceName
(
TestTask
));
}
async
subBeforeTask
(
params
){
console
.
log
(
"前置操作......"
,
this
.
serviceName
);
}
async
subDoTask
(
params
){
console
.
log
(
params
);
console
.
log
(
"TestTask1....."
);
}
}
module
.
exports
=
TestTask
;
\ No newline at end of file
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