Commit 3840e4e6 by 王悦

add syncfq

parent 4be28f45
//tag规则 release-v188.18.* 同步峰擎需求到启服通
const TaskBase = require("../../task.base");
const system = require("../../../system");
var settings = require("../../../../config/settings");
class Syncfq extends TaskBase {
constructor() {
super(TaskBase.getServiceName(Syncfq));
this.restclient = system.getObject("util.restClient");
}
async beforeTask(params) {
console.log("前置操作......", this.serviceName);
}
async subDoTask() {
console.log("--------------");
console.log("TestTask1.....");
var obj = {
"actionType": "syncFqBusiness",
"actionBody": {
"limit": 100 //推送数据条数 默认100条
}
}
try {
var url = settings.centerChannelUrl + "api/auth/taskapi/taskSyncNeedBusiness";
var rtn = await this.restclient.execPost(obj, url);
console.log(rtn);
return rtn;
} catch (error) {
console.log(error);
return null;
}
}
}
module.exports = Syncfq;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment