删除开发模式代码 增加更新日志

This commit is contained in:
liufei
2021-12-13 10:04:15 +08:00
parent 24ba279b18
commit 00f581a03e
6 changed files with 15 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ namespace GeekDesk.Thread
{
//等待1分钟后再检查更新 有的网络连接过慢
System.Threading.Thread.Sleep(1 * 1000);
System.Threading.Thread.Sleep(60 * 1000);
string updateUrl;
string nowVersion = ConfigurationManager.AppSettings["Version"];
@@ -50,7 +50,7 @@ namespace GeekDesk.Thread
{
JObject jo = JObject.Parse(updateInfo);
string onlineVersion = jo["version"].ToString();
if (onlineVersion.CompareTo(nowVersion) > 0 || true)
if (onlineVersion.CompareTo(nowVersion) > 0)
{
App.Current.Dispatcher.Invoke((Action)(() =>
{