Commit d26b0502 by 宋毅

tj

parent 6fcd0d50
...@@ -3,6 +3,7 @@ var system = require("../../../system"); ...@@ -3,6 +3,7 @@ var system = require("../../../system");
class TmTransactionAPI extends APIBase { class TmTransactionAPI extends APIBase {
constructor() { constructor() {
super(); super();
this.orderinfoSve = system.getObject("service.dbcorder.orderinfoSve");
} }
/** /**
* 接口跳转-POST请求 * 接口跳转-POST请求
...@@ -10,7 +11,7 @@ class TmTransactionAPI extends APIBase { ...@@ -10,7 +11,7 @@ class TmTransactionAPI extends APIBase {
* actionType 执行的类型 * actionType 执行的类型
* actionBody 执行的参数 * actionBody 执行的参数
*/ */
async springboard(pobj, qobj, req) { async springBoard(pobj, qobj, req) {
if (!pobj.actionProcess) { if (!pobj.actionProcess) {
return system.getResult(null, "actionProcess参数不能为空"); return system.getResult(null, "actionProcess参数不能为空");
} }
...@@ -31,7 +32,7 @@ class TmTransactionAPI extends APIBase { ...@@ -31,7 +32,7 @@ class TmTransactionAPI extends APIBase {
} }
return result; return result;
} }
async opActionProcess(action_process, action_type, action_body) { async opActionProcess(action_process, action_type, action_body, req) {
var opResult = null; var opResult = null;
switch (action_type) { switch (action_type) {
// sy // sy
...@@ -39,7 +40,7 @@ class TmTransactionAPI extends APIBase { ...@@ -39,7 +40,7 @@ class TmTransactionAPI extends APIBase {
opResult = system.getResultSuccess(null, "测试成功"); opResult = system.getResultSuccess(null, "测试成功");
break; break;
case "addOrder"://添加订单 case "addOrder"://添加订单
// opResult = await this.orderSve.addOrder(action_body); opResult = await this.orderinfoSve.createOrder(action_body, req);
break; break;
default: default:
......
...@@ -5,7 +5,7 @@ class TestAPI extends APIBase { ...@@ -5,7 +5,7 @@ class TestAPI extends APIBase {
constructor() { constructor() {
super(); super();
this.orderSve = system.getObject("service.dborder.orderSve"); this.orderSve = system.getObject("service.dborder.orderSve");
} }
async test(pobj, query, req) { async test(pobj, query, req) {
// var rc = system.getObject("util.aliyunClient"); // var rc = system.getObject("util.aliyunClient");
......
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