Commit 335ca74d by 宋毅

tj

parent 624b2fe2
...@@ -9,18 +9,16 @@ class TmreportTask extends TaskBase { ...@@ -9,18 +9,16 @@ class TmreportTask extends TaskBase {
} }
async beforeTask(params) { async beforeTask(params) {
console.log("前置操作......", this.serviceName); console.log("前置操作......", this.serviceName);
//this.isThrough=true; console.log("formatedTaskName", taskName)
//console.log(this.cacheManager); return taskName + "|i|5"
} }
async subDoTask() { async subDoTask() {
console.log("--------------"); console.log("--------------");
console.log("TestTask1....."); console.log("TestTask1.....");
try { try {
var url = this.igirlWeburl + "api/tmtransactionApi/tmreport"; var url = this.igirlWeburl + "api/tmtransactionApi/tmreport";
var transferinfo = await this.restclient.execGet(null, url); this.restclient.execGet(null, url);
var result = JSON.parse(transferinfo.stdout); return system.getResultSuccess();
console.log(result);
return result;
} catch (error) { } catch (error) {
console.log(error); console.log(error);
return null; return null;
......
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