Browse Source

1、添加小米FireTV测试接口,根据Debug来启动。
2、修正小米FireTV测试接口WifiMac变量名称。

sat23 3 years ago
parent
commit
d293f5aae8

+ 9 - 3
FactoryTool_CShare/Business/CommonMethod.cs

@@ -2633,8 +2633,11 @@ namespace MOKA_Factory_Tools
                 KeepAlive = false
             };
 
-            // 测试地址;
+#if DEBUG
+            item.URL = "http://10.126.124.85:9306/api/SMESCustomer/GetXMCard";
+#else
             item.URL = "http://smes-app-prod.tclking.com:9006/api/SMESCustomer/GetXMCard";
+#endif
             item.Postdata = strPost;
             HttpResult hResult = http.GetHtml(item);
             if (hResult.StatusCode == System.Net.HttpStatusCode.OK)
@@ -2689,8 +2692,11 @@ namespace MOKA_Factory_Tools
                 KeepAlive = false
             };
 
-            // 测试地址;
+#if DEBUG
+            item.URL = "http://10.126.124.85:9306/api/SMESCustomer/UploadXMDataControl";
+#else
             item.URL = "http://smes-app-prod.tclking.com:9006/api/SMESCustomer/UploadXMDataControl";
+#endif
             item.Postdata = JsonConvert.SerializeObject(mikey); ;
             HttpResult hResult = http.GetHtml(item);
             if (hResult.StatusCode == System.Net.HttpStatusCode.OK)
@@ -2729,7 +2735,7 @@ namespace MOKA_Factory_Tools
             return false;
         }
 
-        #endregion
+#endregion
     }
 
     /// <summary>

+ 2 - 6
FactoryTool_CShare/Models/StructList.cs

@@ -229,10 +229,6 @@ namespace MOKA_Factory_Tools
         /// </summary>
         public bool MITVEnable { get; set; } = false;
         #endregion
-
-        #region Kayla测试平台;
-        public bool Kayla { get; set; } = false;
-        #endregion
     }
 
     public class KeyData
@@ -613,7 +609,7 @@ namespace MOKA_Factory_Tools
         // 实际只抄写以下4项;
         public string EthernetMac;        
         public string BTMac;
-        public string WifiMac;
+        public string WIFIMAC;
         public string DSN;
         // 内置值;
         public string _PSN;
@@ -630,7 +626,7 @@ namespace MOKA_Factory_Tools
         public string ChipMN { set; get; } = "";
         public string EthernetMAC { set; get; } = "";
         public string BTMAC { set; get; } = "";
-        public string WifiMAC { set; get; } = "";
+        public string WIFIMAC { set; get; } = "";
         public string HDCP14 { set; get; } = "";
         public string HDCP22 { set; get; } = "";
     }

+ 4 - 4
FactoryTool_CShare/Views/OperationPanel.cs

@@ -1544,7 +1544,7 @@ namespace MOKA_Factory_Tools
                 if (_MiKey.DSN != null)
                     SetCheckboxStatus(WriteDSN, false);
 
-                if (_MiKey.WifiMac != null)
+                if (_MiKey.WIFIMAC != null)
                     SetCheckboxStatus(WriteWifiMac, false);
             }
             #endregion
@@ -1642,7 +1642,7 @@ namespace MOKA_Factory_Tools
             ReportMIKey reportMIKey = new ReportMIKey();
             reportMIKey.EthernetMAC = _MiKey.EthernetMac;
             reportMIKey.BTMAC = _MiKey.BTMac;
-            reportMIKey.WifiMAC = _MiKey.WifiMac;
+            reportMIKey.WIFIMAC = _MiKey.WIFIMAC;
             // 读取HDCP长度赋值;
             reportMIKey.HDCP22 = _MiKey._HDCP22.ToString();
             reportMIKey.HDCP14 = _MiKey._HDCP14.ToString();
@@ -2473,10 +2473,10 @@ namespace MOKA_Factory_Tools
                     keyInfo.DSN.enable = true;
                 }
 
-                if (_MiKey.WifiMac != null)
+                if (_MiKey.WIFIMAC != null)
                 {
                     SetCheckboxStatus(WriteWifiMac, true);
-                    keyInfo.WiFi_MAC.data = _MiKey.WifiMac;
+                    keyInfo.WiFi_MAC.data = _MiKey.WIFIMAC;
                     keyInfo.WiFi_MAC.enable = true;
                 }
             }