Commit c2b3c2f0 by 蒋勇

d

parent da904660
......@@ -265,7 +265,11 @@ class System {
* @param {*} errorInfo 错误信息
*/
static execLogs(opTitle, params, identifyCode, resultInfo, errorInfo) {
var reqUrl = settings.logUrl();
var reqUrl = settings.logUrl();
let isLogData=true
if(params.method && (params.method.indexOf("find")>=0 || params.method.indexOf("get")>=0)){
isLogData=false
}
var param = {
actionType: "produceLogsData",// Y 功能名称
actionBody: {
......@@ -273,11 +277,12 @@ class System {
identifyCode: identifyCode || "brg-center-manage",// Y 操作的业务标识
indexName: "brg-user-center",// Y es索引值,同一个项目用一个值
messageBody: params, //日志的描述信息
resultInfo: resultInfo,//返回信息
resultInfo:isLogData? resultInfo:{status:resultInfo.status},//返回信息
errorInfo: errorInfo,//错误信息
requestId: resultInfo.requestId || ""
}
};
console.log(param)
let P=new Promise((resv,rej)=>{
this.postJsonTypeReq(reqUrl,param).then(res=>{
if(res.statusCode==200){
......
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