Commit 4a357143 by 王栋源

wdy

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