|
@@ -30,7 +30,7 @@ namespace AwInitilizer.Assist
|
|
|
{
|
|
|
private static string account = "admin";
|
|
|
private static string pass = "1231231238";
|
|
|
- internal static string ServerIpAddress = "192.168.1.10";
|
|
|
+ //internal static string ServerIpAddress = "192.168.1.10";
|
|
|
internal static string ServerUrl = "https://192.168.1.10";
|
|
|
//internal static string ServerIpAddress = "172.18.13.84";
|
|
|
//internal static string ServerUrl = "https://172.18.13.84";
|
|
@@ -41,6 +41,22 @@ namespace AwInitilizer.Assist
|
|
|
//internal static string ServerIpAddress = "192.168.80.199";
|
|
|
//internal static string ServerUrl = "https://192.168.80.199";
|
|
|
|
|
|
+ internal static void ResetServerIpAddress(string ipAddress = null)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(ipAddress))
|
|
|
+ {
|
|
|
+ ServerUrl = "https://192.168.1.10";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!ipAddress.StartsWith("http"))
|
|
|
+ {
|
|
|
+ ipAddress = $"https://{ipAddress}";
|
|
|
+ }
|
|
|
+ ServerUrl = ipAddress;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
internal static Task<EvHttpClientResult> GetQueryActionOpt1String()
|
|
|
{
|
|
|
string api = "get_query_action.php";
|