Commit 8f0a9dff by 宋毅

tj

parent 7418d586
...@@ -134,8 +134,8 @@ class APIBase { ...@@ -134,8 +134,8 @@ class APIBase {
// } // }
var rtn = await this[methodname](pobj, query, req); var rtn = await this[methodname](pobj, query, req);
this.logCtl.createDb({ this.logCtl.createDb({
appid: req.app.id, appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: req.app.uappKey, appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
requestId: req.requestId, requestId: req.requestId,
op: req.classname + "/" + methodname, op: req.classname + "/" + methodname,
content: JSON.stringify(pobj), content: JSON.stringify(pobj),
...@@ -149,8 +149,8 @@ class APIBase { ...@@ -149,8 +149,8 @@ class APIBase {
} catch (e) { } catch (e) {
console.log(e.stack, "api调用出现异常,请联系管理员..........") console.log(e.stack, "api调用出现异常,请联系管理员..........")
this.logCtl.createDb({ this.logCtl.createDb({
appid: req.app.id, appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: req.app.uappKey, appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
requestId: req.requestId, requestId: req.requestId,
op: req.classname + "/" + methodname, op: req.classname + "/" + methodname,
content: JSON.stringify(pobj), content: JSON.stringify(pobj),
...@@ -160,8 +160,8 @@ class APIBase { ...@@ -160,8 +160,8 @@ class APIBase {
opTitle: "api调用出现异常,请联系管理员error,appKey:" + settings.appKey, opTitle: "api调用出现异常,请联系管理员error,appKey:" + settings.appKey,
}); });
this.logCtl.error({ this.logCtl.error({
appid: req.app.id, appid: pobj.appInfo ? pobj.appInfo.uapp_id : "",
appkey: req.app.uappKey, appkey: pobj.appInfo ? pobj.appInfo.uapp_key : "",
requestId: req.requestId, requestId: req.requestId,
op: req.classname + "/" + methodname, op: req.classname + "/" + methodname,
content: e.stack, 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