Commit fde9c155 by 宋毅

tj

parent 47445347
......@@ -61,7 +61,8 @@ class APIBase {
var fullname = gname + "." + methodname;
var lst = [
"test.test",
"testApiT.test",
"opLog.info",
"opLog.error",
"auth.getToken",
"auth.getJdSign"
];
......
var APIBase = require("../../api.base");
var system = require("../../../system");
const logCtl = system.getObject("web.common.oplogCtl");
class opLog extends APIBase {
constructor() {
super();
}
async info(pobj, qobj, req) {
this.logCtl.info(pobj);
}
async error(pobj, qobj, req) {
this.logCtl.error(pobj);
}
}
module.exports = opLog;
\ No newline at end of file
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