登录功能,自动登录实现
This commit is contained in:
commit
bb8dfca7a1
5 files changed
+49
-51
No files matched your search
@@ -280,7 +280,7 @@ namespace SunlightAggregationTerminal.Class
|
||||
|
||||
string Sql = @"
|
||||
INSERT INTO Users (User,UserId ,UserName ,UserPassword ,Enterprise ,Department ,ServerID ,Groups ,ProxyID ,LogNo ,LocalAreaNetworkMode ,DarkMode ,MessageNotificationMode ,GUID
|
||||
)VALUES('SUNLIGHT','SUNLIGHT','SUNLIGHT','SUNLIGHT','SUNLIGHT','ENGINEER','TEST','ENGINEER','',0,0,0,0,'"+ Models.AppModels.GetAppUniqueId() + "');";
|
||||
)VALUES('SUNLIGHT','SUNLIGHT','SUNLIGHT','SUNLIGHT','SUNLIGHT','ENGINEER','127.0.0.1:7789','ENGINEER','',0,0,0,0,'"+ Models.AppModels.GetAppUniqueId() + "');";
|
||||
|
||||
// 复用现有的 ExecuteNonQuery 方法
|
||||
SQLitedata.ExecuteNonQuery(Sql, null);
|
||||
|
||||
+1
-3
@@ -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(), "是");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user