http开始

master
nodyang@aliyun.com 1 month ago
parent 1d2cba0704
commit 5cda604edb

@ -35,13 +35,8 @@ namespace SlnMesnac.RfidUpload.NLog
private static readonly Lazy<LogHelper> _lazy = new Lazy<LogHelper>(() => new LogHelper()); private static readonly Lazy<LogHelper> _lazy = new Lazy<LogHelper>(() => new LogHelper());
public static LogHelper Instance public static LogHelper Instance => _lazy.Value;
{
get
{
return _lazy.Value;
}
}
private LogHelper() private LogHelper()
{ {
var logRepository = LogManager.GetRepository(Assembly.GetEntryAssembly()); var logRepository = LogManager.GetRepository(Assembly.GetEntryAssembly());
@ -69,7 +64,7 @@ namespace SlnMesnac.RfidUpload.NLog
/// </summary> /// </summary>
/// <param name="errorMsg"></param> /// <param name="errorMsg"></param>
/// <param name="ex"></param> /// <param name="ex"></param>
public void Error(string info, Exception ex = null) public void Error(string info, Exception? ex = null)
{ {
if (!string.IsNullOrEmpty(info) && ex == null) if (!string.IsNullOrEmpty(info) && ex == null)
{ {

@ -87,13 +87,15 @@ namespace SlnMesnac.RfidUpload.TouchSocket
containerRegisterQuery = paramStr containerRegisterQuery = paramStr
}; };
var str = jsonChange.ModeToJson(container); var str = jsonChange.ModeToJson(container);
logger.Info("------------------------------http开始-----------------------------------------");
logger.Info($"apIName:{apiName}:paramName:{paramName}:paramStr:{paramStr}"); logger.Info($"apIName:{apiName}");
logger.Info($"paramName:{paramName}");
logger.Info($"paramStr:{paramStr}");
logger.Info($"请求CSB接口调用服务,参数:{str}"); logger.Info($"请求CSB接口调用服务,参数:{str}");
result = Post(appConfig.localUrl, container); result = Post(appConfig.localUrl, container);
logger.Info($"CSB接口返回信息:{result}"); logger.Info($"CSB接口返回信息:{result}");
logger.Info("-----------------------------------------------------------------------"); logger.Info("------------------------------http结束-----------------------------------------");
} }
catch (Exception e) catch (Exception e)
{ {
@ -110,12 +112,13 @@ namespace SlnMesnac.RfidUpload.TouchSocket
string result = string.Empty; string result = string.Empty;
try try
{ {
logger.Info("------------------------------http开始-----------------------------------------");
logger.Info($"apIName: paramName:"); logger.Info($"apIName: paramName:");
logger.Info($"请求CSB接口调用服务,参数:{paramStr}"); logger.Info($"请求CSB接口调用服务,参数:{paramStr}");
result = Post(appConfig.localUrl, paramStr); result = Post(appConfig.localUrl, paramStr);
logger.Info($"CSB接口返回信息:{result}"); logger.Info($"CSB接口返回信息:{result}");
logger.Info("-----------------------------------------------------------------------"); logger.Info("------------------------------http结束-----------------------------------------");
} }
catch (Exception e) catch (Exception e)
{ {

@ -280,10 +280,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
//}; //};
//加载标签信息 //加载标签信息
_business.InstructionInfoDataGridEvent += info => _business.InstructionInfoDataGridEvent += RefreshLabelInfoDataGrid;
{
RefreshLabelInfoDataGrid(info);
};
//加载解析日志 //加载解析日志
_business.RefreshLogMessageEvent += message => _business.RefreshLogMessageEvent += message =>

Loading…
Cancel
Save