Commit 4a357143 by 王栋源

wdy

parent e073103e
...@@ -7,6 +7,9 @@ class TradetransferAPI extends APIBase { ...@@ -7,6 +7,9 @@ class TradetransferAPI extends APIBase {
super(); super();
this.execlient = system.getObject("util.execClient"); this.execlient = system.getObject("util.execClient");
this.channelApiUrl = settings.channelApiUrl(); this.channelApiUrl = settings.channelApiUrl();
this.appInfo = {
aliyuntmtransfer: { appkey: "201912031344", secret: "7cbb846246874167b5c7e01cd0016c88" }
};
} }
async getToken() { async getToken() {
...@@ -42,17 +45,17 @@ class TradetransferAPI extends APIBase { ...@@ -42,17 +45,17 @@ class TradetransferAPI extends APIBase {
return rtn; return rtn;
} }
//订单查询 //订单查询
async ordersel(obj) { async ordersel(p,obj) {
var sobj = { var sobj = {
"actionProcess": "aliyuntmtransfer", "actionProcess": "aliyuntmtransfer",
"actionType": "aliclient", "actionType": "aliclient",
"sign": "2FviZ9PGws8Pt1fBhq0t90mjUvI", "sign": "2FviZ9PGws8Pt1fBhq0t90mjUvI",
"actionBody": obj "actionBody": obj
} }
var tokenInfo = await this.getToken(); // var tokenInfo = await this.getToken();
var url = this.channelApiUrl + "/api/transfer/tradeApi/ordersel"; var url = this.channelApiUrl + "/api/action/tradetransfer/ordersel";
var rtn = await this.execlient.execPostTK(sobj, url, tokenInfo.data.token); // var rtn = await this.execlient.execPostTK(sobj, url, tokenInfo.data.token);
// var rtn = await this.execlient.execPostTK(sobj, url,"token"); var rtn = await this.execlient.execPostTK(sobj, url,"token");
return rtn; return rtn;
} }
......
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