Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jun 14, 2024
1 parent 6d14f3e commit 03db604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Init.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private static void StartStatistics()
HttpClient _httpClient = new HttpClient();
_httpClient.DefaultRequestHeaders.Referrer = new Uri("https://update5.ddtv.pro");
string A = _httpClient.GetStringAsync("https://update5.ddtv.pro/Start.txt").Result;
if(A=="1")
if(A=="1" || A=="1\r\n")
{
Log.Info(nameof(StartStatistics), "启动统计正常");
}
Expand All @@ -206,7 +206,7 @@ public static void HeartbeatStatistics(object state)
HttpClient _httpClient = new HttpClient();
_httpClient.DefaultRequestHeaders.Referrer = new Uri("https://update5.ddtv.pro");
string A = _httpClient.GetStringAsync("https://update5.ddtv.pro/Heartbeat.txt").Result;
if (A == "1")
if(A=="1" || A=="1\r\n")
{
Log.Info(nameof(HeartbeatStatistics), "心跳正常");
}
Expand Down

0 comments on commit 03db604

Please sign in to comment.