NewLife/XCoder

码神工具windows版支持完整机器信息
大石头 authored at 2021-03-20 12:54:24
fe65a95
Tree
1 Parent(s) bab9b8a
Summary: 2 changed files with 6 additions and 0 deletions.
Modified +5 -0
Modified +1 -0
Modified +5 -0
diff --git a/XCoder/Tools/FrmSecurity.cs b/XCoder/Tools/FrmSecurity.cs
index b3e11db..db36560 100644
--- a/XCoder/Tools/FrmSecurity.cs
+++ b/XCoder/Tools/FrmSecurity.cs
@@ -616,6 +616,11 @@ namespace XCoder.Tools
         {
             var sb = Pool.StringBuilder.Get();
 
+            var mi = MachineInfo.Current;
+            mi.Refresh();
+            sb.AppendLine(mi.ToJson(true));
+            sb.AppendLine();
+
             var macs = GetMacs().ToList();
             if (macs.Count > 0) sb.AppendFormat("MAC:\t{0}\r\n", macs.Join(",", x => x.ToHex("-")));
 
Modified +1 -0
diff --git a/XCoderLinux/Tools/FrmSecurity.cs b/XCoderLinux/Tools/FrmSecurity.cs
index a206e38..4916110 100644
--- a/XCoderLinux/Tools/FrmSecurity.cs
+++ b/XCoderLinux/Tools/FrmSecurity.cs
@@ -548,6 +548,7 @@ namespace XCoder.Tools
             var sb = Pool.StringBuilder.Get();
 
             var mi = MachineInfo.Current;
+            mi.Refresh();
             sb.AppendLine(mi.ToJson(true));
             sb.AppendLine();