Commit e53b4130 by linboxuan

Merge branch 'taskexecutor' of http://gitlab.gongsibao.com/jiangyong/zhichan into taskexecutor

parents f63bb546 66d69a07
......@@ -31,7 +31,3 @@ class TmNotifyTask extends TaskBase {
}
}
module.exports = TmNotifyTask;
var a=new TmNotifyTask();
a.subDoTask();
\ No newline at end of file
//tag规则 release-v188.16.*
const TaskBase = require("../../task.base");
const system = require("../../../system");
var settings = require("../../../../config/settings");
class TmOfficialTask extends TaskBase {
constructor() {
super(TaskBase.getServiceName(TmOfficialTask));
this.restclient = system.getObject("util.restClient");
}
/**
* 每天9点检查一次
* @param {*} taskName
*/
formatedTaskName (taskName) {
console.log("formatedTaskName", taskName)
return taskName + "|i|5"
}
async subDoTask () {
console.log("--------------");
console.log("TestTask1.....");
var obj = {
}
try {
var url = settings.tmnotifyUrl() + "/api/action/tmNotify/officialCount";
this.restclient.execPost(obj, url);
return system.getResultSuccess();
} catch (error) {
console.log(error);
return null;
}
}
}
module.exports = TmOfficialTask;
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