♻️ 优化代码, 提取公共样式

This commit is contained in:
BookerLiu
2023-04-21 18:05:06 +08:00
parent 6fd1e65db7
commit f152aaf1f4
17 changed files with 170 additions and 199 deletions

View File

@@ -53,12 +53,15 @@ namespace GeekDesk.MyThread
try
{
string statisticUrl = jo["statisticUrl"].ToString();
if (!string.IsNullOrEmpty(statisticUrl))
if (jo["statisticUrl"] != null)
{
//用户统计 只通过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){}