Commit 64a95b0a by 王栋源

wdy

parent 4a6322c3
......@@ -8,7 +8,7 @@ class TradetransferAPI extends APIBase {
this.execlient = system.getObject("util.execClient");
this.channelApiUrl = settings.channelApiUrl();
this.appInfo = {
aliyuntmtransfer: { appkey: "201912031344", secret: "7cbb846246874167b5c7e01cd0016c88" }
aliyuntmtransfer: { appkey: "201911131657", secret: "eeb18393aade40149287b024d8ba0850" }
};
}
......@@ -31,21 +31,22 @@ class TradetransferAPI extends APIBase {
}
//订单创建
async createtransfer(obj) {
async acceptOrder(p,obj) {
var sobj = {
"actionProcess": "aliyuntmtransfer",
"actionType": "aliclient",
"sign": "2FviZ9PGws8Pt1fBhq0t90mjUvI",
"isUser": "yes",
"actionBody": obj
}
var tokenInfo = await this.getToken();
var url = this.channelApiUrl + "/api/transfer/tradeApi/createtransfer";
var url = this.channelApiUrl + "/api/action/tradetransfer/createtransfer";
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;
}
//订单查询
async ordersel(p,obj) {
async queryOrderState(p,obj) {
var sobj = {
"actionProcess": "aliyuntmtransfer",
"actionType": "aliclient",
......@@ -60,7 +61,7 @@ class TradetransferAPI extends APIBase {
}
//订单关闭
async orderclose(obj) {
async closeOrder(p,obj) {
var sobj = {
"actionProcess": "aliyuntmtransfer",
"actionType": "aliclient",
......
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