This commit is contained in:
Administrator committed 2026-06-03 23:32:44 +08:00
commit aee911cc20
3 files changed
+18 -12

No files matched your search

+4 -4
View File
@@ -31,6 +31,7 @@ namespace SunlightAggregationManager.ViewModel
public static string MachineIP = "";
public static int MachineIPP1 = 7789;
public static int MachineIPP2 = 7790;
public static int MachineHTTPP = 7791;
public static string Enterprise = "";
public static string TCP_E = "0";
public static string HTTP_E = "0";
@@ -127,15 +128,14 @@ namespace SunlightAggregationManager.ViewModel
}
if (HTTP_E == "1")//启动tcp(内网直连)
{
int P1;
try
{
P1 = int.Parse(Configini.IniReadvalue("NETWORK", "HTTP_PORT"));
MachineHTTPP = int.Parse(Configini.IniReadvalue("NETWORK", "HTTP_PORT"));
}
catch (Exception) { P1 = 7791; }
catch (Exception) { MachineHTTPP = 7791; }
Service.Rows.Add(2, "RUN", "HTTP");
AsyncHttpServer.Configuration(P1);
AsyncHttpServer.Configuration(MachineHTTPP);
}
else
{