From ea39576709f8e7750e09f42d7bf140e81ea60c16 Mon Sep 17 00:00:00 2001 From: BookerLiu Date: Fri, 21 Apr 2023 14:16:58 +0800 Subject: [PATCH] =?UTF-8?q?:poop:=20=E9=98=B2=E6=AD=A2=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E6=9B=B4=E6=96=B0=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyThread/UpdateThread.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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)