Commit 534856a0 by 蒋勇

d

parent 42392cf4
......@@ -54,12 +54,10 @@ class APIBase{
rtn.requestId=this.getUUID()
req.params.param=pobj
let t=req.xctx.codetitle
let codename=req.xctx.codename
if(t==''){
t="外部调用"
codename=req.xctx.appkey
}
system.execLogs(t,req.params,codename,rtn,null).then(res=>{
system.execLogs(t,req.params,pobj.company_id,rtn,null).then(res=>{
if(res && res.status==1){
console.log("log.....success")
}else{
......@@ -74,12 +72,10 @@ class APIBase{
rtn.requestId=this.getUUID()
req.params.param=pobj
let t=req.xctx.codetitle
let codename=req.xctx.codename
if(t==''){
t="外部调用"
codename=req.xctx.appkey
}
system.execLogs(t,req.params,codename,rtn,e.stack).then(res=>{
system.execLogs(t,req.params,pobj.company_id,rtn,e.stack).then(res=>{
if(res && res.status==1){
console.log("log.....success")
}else{
......
......@@ -105,7 +105,8 @@ class CtlBase {
var rtn = await this[methodname](pobj, query, req);
rtn.requestId=this.getUUID()
req.params.param=pobj
system.execLogs(req.xctx.codetitle,req.params,req.xctx.codename,rtn,null).then(res=>{
//第三个字段应该存公司id
system.execLogs(req.xctx.codetitle,req.params, pobj.company_id,rtn,null).then(res=>{
if(res && res.status==1){
console.log("log.....success")
}else{
......@@ -119,7 +120,7 @@ class CtlBase {
let rtn={}
rtn.requestId=this.getUUID()
req.params.param=pobj
system.execLogs(req.xctx.codetitle,req.params,null,rtn,e).then(res=>{
system.execLogs(req.xctx.codetitle,req.params,pobj.company_id,rtn,e).then(res=>{
if(res && res.status==1){
console.log("log.....success")
}else{
......
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