A:基础实现 及调整

This commit is contained in:
jimmy committed 2025-06-07 11:21:41 +08:00
1 parent a6922cea36
commit 04e912a830
6 files changed
+54 -94

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
using Common;
using Common.ExpandException;
using Common.Logger;
namespace Infrastructure.utils;
@@ -69,7 +70,7 @@ public static class SysInfoUtils
#region 检查缓存
var pck = new ProcessCache.ProcessCacheKey(pid, proc.StartTime);
var pck = ProcessCache.GetProcessKey(pid);
var programInfo = ProcessCache.Instance.Get(pck);
if (programInfo != null)
{
@@ -119,7 +120,7 @@ public static class SysInfoUtils
// 只捕获能遇见的异常
catch (ArgumentException ex)
{
Console.WriteLine($"获取进程信息失败:{ex.Message}");
Log.Information($"获取进程信息失败:{ex.Message}");
throw ExceptionEnum.ProcessGetException;
}
}