Commit c2b3c2f0 by 蒋勇

d

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