-
Notifications
You must be signed in to change notification settings - Fork 829
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4790210
commit eeba3bf
Showing
3 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,15 +36,25 @@ private static void Entry() | |
$"版权所有(C)LiuKaiyuan (Odysseus.Yuan)。保留所有权利。\n\n" + | ||
$"探讨 {Console.Title} 相关内容,可发送邮件至:[email protected]", ConsoleColor.Gray); | ||
|
||
//确认系统情况 | ||
if (int.Parse(Com_SystemOS.OS.GetBuildNumber()) < 15063) | ||
{ | ||
//小于 Win10 1703 的操作系统,激活存在失败问题 | ||
new Log($"\n × 请将当前操作系统升级至 Windows 10 (1703) 或其以上版本,否则 Office 无法进行正版激活!", ConsoleColor.DarkRed); | ||
|
||
//退出机制 | ||
QuitMsg(); | ||
|
||
return; | ||
} | ||
|
||
//确认联网情况 | ||
if (!Com_NetworkOS.Check.IsConnected) | ||
{ | ||
new Log($"\n × 请确保当前电脑可正常访问互联网!", ConsoleColor.DarkRed); | ||
|
||
//退出机制 | ||
Console.ForegroundColor = ConsoleColor.Gray; | ||
Console.Write("\n请按任意键退出 ..."); | ||
Console.ReadKey(); | ||
QuitMsg(); | ||
|
||
return; | ||
} | ||
|
@@ -67,9 +77,7 @@ private static void Entry() | |
Lib_SelfCount.PostInfo.Finish(); | ||
|
||
//退出机制 | ||
Console.ForegroundColor = ConsoleColor.Gray; | ||
Console.Write("\n请按任意键退出 ..."); | ||
Console.ReadKey(); | ||
QuitMsg(); | ||
} | ||
else | ||
{ | ||
|
@@ -79,5 +87,13 @@ private static void Entry() | |
return; | ||
} | ||
} | ||
|
||
private static void QuitMsg() | ||
{ | ||
//退出机制 | ||
Console.ForegroundColor = ConsoleColor.Gray; | ||
Console.Write("\n请按任意键退出 ..."); | ||
Console.ReadKey(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters