Commit d26b0502 by 宋毅

tj

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