Commit d072ad08 by linboxuan

add tmQueryTradeProduceList

parent 7be52e0b
const TaskBase = require("../../task.base");
const system = require("../../../system");
var settings = require("../../../../config/settings");
class TmtransactionTask extends TaskBase {
constructor() {
super(TaskBase.getServiceName(TmtransactionTask));
this.restclient = system.getObject("util.restClient");
this.centerChannelUrl = settings.centerChannelUrl();
}
async beforeTask(params) {
console.log("前置操作......", this.serviceName);
}
async subDoTask() {
console.log("--------------");
console.log("queryTradeProduceList.....");
var obj = {
"actionType": "queryTradeProduceList",
"actionBody": {
}
}
try {
var url = this.centerChannelUrl + "web/opaction/tmOrderCall/springBoard";
var transferinfo = await this.restclient.execPost(obj, url);
console.log(rtn);
return rtn;
} catch (error) {
console.log(error);
return null;
}
}
}
module.exports = TmtransactionTask;
\ 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