diff --git a/MyThread/UpdateThread.cs b/MyThread/UpdateThread.cs index 01bc80e..b6b08d1 100644 --- a/MyThread/UpdateThread.cs +++ b/MyThread/UpdateThread.cs @@ -51,14 +51,18 @@ namespace GeekDesk.MyThread { JObject jo = JObject.Parse(updateInfo); - - string statisticUrl = jo["statisticUrl"].ToString(); - if (!string.IsNullOrEmpty(statisticUrl)) + try { - //用户统计 只通过uuid统计用户数量 不收集任何信息 - statisticUrl += "?uuid=" + CommonCode.GetUniqueUUID(); - HttpUtil.Get(statisticUrl); - } + string statisticUrl = jo["statisticUrl"].ToString(); + if (!string.IsNullOrEmpty(statisticUrl)) + { + //用户统计 只通过uuid统计用户数量 不收集任何信息 + statisticUrl += "?uuid=" + CommonCode.GetUniqueUUID(); + HttpUtil.Get(statisticUrl); + } + } catch (Exception){} + + string onlineVersion = jo["version"].ToString(); if (onlineVersion.CompareTo(nowVersion) > 0)