登录功能,自动登录实现

This commit is contained in:
Administrator committed 2026-05-09 01:25:04 +08:00
commit bb8dfca7a1
5 files changed
+49 -51

No files matched your search

+1 -3
View File
@@ -47,9 +47,7 @@ namespace SunlightAggregationTerminal.Class
ServerPassword = Password;
ServerTerminal = Terminal;
_ = TcpClient(tcpClient, ServerIP);
}
public static async void TcpTransmit(string Dat)
{
@@ -167,7 +165,7 @@ namespace SunlightAggregationTerminal.Class
}
catch (Exception ex)
{
await Application.Current!.Windows[0].Page!.DisplayAlertAsync("错误", "不合法的访问地址", "是");
await Application.Current!.Windows[0].Page!.DisplayAlertAsync("错误", ex.ToString(), "是");
}
}
}