Commit b9aa14d3 by 宋毅

tj

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