diff --git a/Class/DataReceived.cs b/Class/DataReceived.cs index d402f68..30a8f96 100644 --- a/Class/DataReceived.cs +++ b/Class/DataReceived.cs @@ -57,7 +57,7 @@ namespace SunlightAggregationTerminal.Class }); } - return null; // 如果未找到有效IP则返回null + return ""; // 如果未找到有效IP则返回null } public static string ServerIP = ""; diff --git a/QueryPage.xaml.cs b/QueryPage.xaml.cs index 44ac75f..09abe0a 100644 --- a/QueryPage.xaml.cs +++ b/QueryPage.xaml.cs @@ -75,7 +75,7 @@ public partial class QueryPage : ContentPage } } } - catch (Exception ex) { + catch (Exception) { } }