Commit 40427c1c by 宋毅

tj

parent 1d6f19de
...@@ -18,10 +18,10 @@ class TmToolsAPI extends WEBBase { ...@@ -18,10 +18,10 @@ class TmToolsAPI extends WEBBase {
if (!pobj.actionType) { if (!pobj.actionType) {
return system.getResult(null, "actionType参数不能为空"); return system.getResult(null, "actionType参数不能为空");
} }
var result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req); var result = await this.opActionProcess(pobj, pobj.actionType, pobj.actionBody, req);
return result; return result;
} }
async opActionProcess(action_process, action_type, action_body, req) { async opActionProcess(pobj, action_type, action_body, req) {
var opResult = null; var opResult = null;
switch (action_type) { switch (action_type) {
// sy // sy
...@@ -35,7 +35,7 @@ class TmToolsAPI extends WEBBase { ...@@ -35,7 +35,7 @@ class TmToolsAPI extends WEBBase {
opResult = await this.toolSve.decryptStr(req.app, action_body.opStr); opResult = await this.toolSve.decryptStr(req.app, action_body.opStr);
break; break;
case "getOssConfig"://获取oss信息 case "getOssConfig"://获取oss信息
opResult = await this.toolSve.getOssConfig(); opResult = await this.toolSve.getOssConfig(pobj);
break; break;
case "getNcl"://尼斯查询(一) case "getNcl"://尼斯查询(一)
opResult = await this.toolSve.getNcl(action_body, req); opResult = await this.toolSve.getNcl(action_body, req);
......
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