Commit d685529a by 宋毅

tj

parent 7ab5852c
......@@ -15,14 +15,14 @@ class APIBase {
}
async checkAcck(gname, methodname, pobj, query, req) {
if (methodname.length > 4) {
var prefixStr = methodname.substr(0,4);
var prefixStr = methodname.substr(0, 4);
if (prefixStr == "task") {
return system.getResultSuccess();
}
}
var method = pobj.actionType;
if (method && method.length > 4) {
var prefixStr = method.substr(0,4);
var prefixStr = method.substr(0, 4);
if (prefixStr == "task") {
return system.getResultSuccess();
}
......@@ -43,8 +43,8 @@ class APIBase {
}
var rtn = await this[methodname](pobj, query, req);
this.logCtl.createDb({
appid: req.app.id,
appkey: req.app.uappKey,
appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
requestId: req.requestId,
op: req.classname + "/" + methodname,
content: JSON.stringify(pobj),
......@@ -58,8 +58,8 @@ class APIBase {
} catch (e) {
console.log(e.stack, "api调用出现异常,请联系管理员..........")
this.logCtl.createDb({
appid: req.app.id,
appkey: req.app.uappKey,
appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
requestId: req.requestId,
op: req.classname + "/" + methodname,
content: JSON.stringify(pobj),
......@@ -69,8 +69,8 @@ class APIBase {
opTitle: "api调用出现异常,请联系管理员error,appKey:" + settings.appKey,
});
this.logCtl.error({
appid: req.app.id,
appkey: req.app.uappKey,
appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
requestId: req.requestId,
op: req.classname + "/" + methodname,
content: e.stack,
......
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