Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightAggregationTerminal
This commit is contained in:
commit
a485d1cb58
5 files changed
+73
-148
No files matched your search
+10
-10
@@ -17,12 +17,12 @@ namespace SunlightAggregationTerminal.Class
|
||||
|
||||
public static async void Configuration(string ip, string Name, string Password, string Terminal)
|
||||
{
|
||||
ServerIP = ip;
|
||||
ServerName = Name;
|
||||
ServerPassword = Password;
|
||||
ServerTerminal = Terminal;
|
||||
DataReceived.ServerIP = ip;
|
||||
DataReceived.ServerName = Name;
|
||||
DataReceived.ServerPassword = Password;
|
||||
DataReceived.ServerTerminal = Terminal;
|
||||
|
||||
await HttpClient("127.0.0.1:7791");
|
||||
await HttpClient(DataReceived.ServerIP);
|
||||
}
|
||||
|
||||
public static async Task HttpClient(string url)
|
||||
@@ -70,12 +70,12 @@ namespace SunlightAggregationTerminal.Class
|
||||
/***发送信息处理***/
|
||||
public static async void HttpTransmit(string Dat)
|
||||
{
|
||||
var dat = new Person()
|
||||
var dat = new DataReceived.Person()
|
||||
{
|
||||
User = ServerName,
|
||||
Password = ServerPassword,
|
||||
IP = GetLocalIpSimple(),
|
||||
Terminal = ServerTerminal,
|
||||
User = DataReceived.ServerName,
|
||||
Password = DataReceived.ServerPassword,
|
||||
IP = DataReceived.GetLocalIpSimple(),
|
||||
Terminal = DataReceived.ServerTerminal,
|
||||
Dat = Dat
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user