Commit b9aa14d3 by 宋毅

tj

parent 601a36fd
...@@ -142,6 +142,7 @@ class APIBase { ...@@ -142,6 +142,7 @@ class APIBase {
if (rtn && !rtn.requestId) { if (rtn && !rtn.requestId) {
rtn.requestId = requestid; rtn.requestId = requestid;
} }
if (methodname != "test") {
this.logCtl.createDb({ this.logCtl.createDb({
appid: req.app.id, appid: req.app.id,
appkey: req.app.uappKey, appkey: req.app.uappKey,
...@@ -153,6 +154,7 @@ class APIBase { ...@@ -153,6 +154,7 @@ class APIBase {
agent: req.uagent, agent: req.uagent,
opTitle: "api服务提供方appKey:" + settings.appKey, opTitle: "api服务提供方appKey:" + settings.appKey,
}); });
}
return rtn; return rtn;
} catch (e) { } catch (e) {
console.log(e.stack, "api调用出现异常,请联系管理员..........") console.log(e.stack, "api调用出现异常,请联系管理员..........")
......
...@@ -4,17 +4,8 @@ class jdAuthAPI extends APIBase { ...@@ -4,17 +4,8 @@ class jdAuthAPI extends APIBase {
constructor() { constructor() {
super(); super();
} }
async test(pobj, qobj, req) {
async getUser(pobj, qobj, req) { return system.getResultSuccess();
console.log("pobj......getUser..........:\n", pobj);
console.log("qobj......getUser..........:\n", qobj);
return { getUser: "ok" };
}
async payOrderInfo(pobj, qobj, req) {
console.log("pobj......payOrderInfo..........:\n", pobj);
console.log("qobj......payOrderInfo..........:\n", qobj);
return { payOrderInfo: "ok" };
} }
} }
module.exports = jdAuthAPI; module.exports = jdAuthAPI;
\ No newline at end of file
...@@ -200,10 +200,10 @@ class System { ...@@ -200,10 +200,10 @@ class System {
var objabspath = classpath + "/" + filename + ".js"; var objabspath = classpath + "/" + filename + ".js";
if (System.objTable[objabspath] != null) { if (System.objTable[objabspath] != null) {
console.log(objabspath, "get cached obj...."); // console.log(objabspath, "get cached obj....");
return System.objTable[objabspath]; return System.objTable[objabspath];
} else { } else {
console.log("no cached..."); // console.log("no cached...");
var ClassObj = require(objabspath); var ClassObj = require(objabspath);
return System.register(objabspath, ClassObj); return System.register(objabspath, ClassObj);
} }
......
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