Compare commits

..

2 Commits

@ -78,7 +78,7 @@ namespace FactorySystemApi
} }
catch (Exception ex) catch (Exception ex)
{ {
string errorMsg = string.Format("{1}", Environment.NewLine, ex.Message.ToString()); string errorMsg = string.Format("{1},异常时间:{2}", Environment.NewLine, ex.Message.ToString(),DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
ExceptionHelper.WriteMessage(errorMsg, 2); ExceptionHelper.WriteMessage(errorMsg, 2);
ApiResult errResult = new ApiResult().CustomError((int)Constant.ApiResultCode., errorMsg); ApiResult errResult = new ApiResult().CustomError((int)Constant.ApiResultCode., errorMsg);
if (ex.Message == "登录超时,请重新登录") if (ex.Message == "登录超时,请重新登录")

@ -46,7 +46,7 @@ namespace FactorySystemCommon
tempDb.Aop.OnLogExecuting = (sql, p) => tempDb.Aop.OnLogExecuting = (sql, p) =>
{ {
string parMsg = string.Join(",", p?.Select(it => it.ParameterName + ":" + it.Value)); string parMsg = string.Join(",", p?.Select(it => it.ParameterName + ":" + it.Value));
string dugMsg = string.Format("请求Sql语句{1}{0}请求参数:{2}", Environment.NewLine, sql, parMsg); string dugMsg = string.Format("请求Sql语句{1}{0}请求参数:{2};请求时间:{3}", Environment.NewLine, sql, parMsg,DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
ExceptionHelper.WriteMessage(dugMsg, 2); ExceptionHelper.WriteMessage(dugMsg, 2);
}; };
return tempDb; return tempDb;

Loading…
Cancel
Save