Commit 16656560 by 王栋源

wdy

parent d33de19a
...@@ -4,6 +4,7 @@ class NeedOrderAPI extends APIBase { ...@@ -4,6 +4,7 @@ class NeedOrderAPI extends APIBase {
constructor() { constructor() {
super(); super();
this.needinfoSve = system.getObject("service.dbneed.needinfoSve"); this.needinfoSve = system.getObject("service.dbneed.needinfoSve");
this.businesschanceSve = system.getObject("service.dbneed.businesschanceSve");
} }
/** /**
* 接口跳转-POST请求 * 接口跳转-POST请求
...@@ -18,20 +19,21 @@ class NeedOrderAPI extends APIBase { ...@@ -18,20 +19,21 @@ class NeedOrderAPI extends APIBase {
if (!pobj.actionType) { if (!pobj.actionType) {
return system.getResult(null, "actionType参数不能为空"); return system.getResult(null, "actionType参数不能为空");
} }
var result = null; var result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
pobj.actionBody["user"] = req.user; // var result = null;
pobj.actionBody["app"] = req.app; // pobj.actionBody["user"] = req.user;
switch (pobj.actionProcess) { // pobj.actionBody["app"] = req.app;
case "jd"://京东 // switch (pobj.actionProcess) {
result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody); // case "jd"://京东
break; // result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody);
case "1688"://京东 // break;
result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody); // case "1688"://京东
break; // result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody);
default: // break;
result = system.getResult(null, "actionProcess参数错误"); // default:
break; // result = system.getResult(null, "actionProcess参数错误");
} // break;
// }
return result; return result;
} }
async opActionProcess(action_process, action_type, action_body) { async opActionProcess(action_process, action_type, action_body) {
......
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