添加http连接功能
This commit is contained in:
commit
cd7a6df16c
7 files changed
+248
-6
No files matched your search
+12
-1
@@ -77,9 +77,20 @@ namespace SunlightAggregationTerminal.Models
|
||||
App.GlobalData.LogNo = false;
|
||||
|
||||
//发送登录请求
|
||||
TcpServer.Configuration(App.GlobalData.ServerID,
|
||||
if (App.GlobalData.LocalAreaNetworkMode)
|
||||
{
|
||||
//tcp
|
||||
TcpServer.Configuration(App.GlobalData.ServerID,
|
||||
App.GlobalData.User, App.GlobalData.UserPassword,
|
||||
Models.AppModels.GetAppUniqueId());
|
||||
}
|
||||
else
|
||||
{
|
||||
//http
|
||||
HttpServer.Configuration(App.GlobalData.ServerID,
|
||||
App.GlobalData.User, App.GlobalData.UserPassword,
|
||||
Models.AppModels.GetAppUniqueId());
|
||||
}
|
||||
|
||||
// 创建一个 15 秒的延时任务
|
||||
Task delayTask = Task.Delay(15000);
|
||||
|
||||
Reference in new issue
Block a user