Commit eab65c85 by linboxuan

lin add QueryTradeIntentionUserList

parent d072ad08
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);
}
// 2020 1012 lin 新增 调用QueryTradeIntentionUserList没有测过
async subDoTask() {
console.log("--------------");
console.log("QueryTradeIntentionUserList.....");
var obj = {
"actionType": "QueryTradeIntentionUserList",
"actionBody": {
}
}
try {
var url = this.centerChannelUrl + "web/trade/brand/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