Pārlūkot izejas kodu

测试模式不可用修复

JeffWang 2 gadi atpakaļ
vecāks
revīzija
a684bff9a3

+ 6 - 0
FactoryTool_CShare/Business/V2Method.cs

@@ -30,6 +30,12 @@ namespace MOKA_Factory_Tools
                 url_getMessage = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";
                 url_getMessage = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";
         }
         }
 
 
+        public static void SetTestUrl()
+        {
+            if (TestMode.testMode)
+                url_getMessage = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";
+        }
+
         /// <summary>
         /// <summary>
         /// 
         /// 
         /// </summary>
         /// </summary>

+ 1 - 0
FactoryTool_CShare/Views/Login.cs

@@ -74,6 +74,7 @@ namespace MOKA_Factory_Tools
             {
             {
                 TestMode.testMode = true;
                 TestMode.testMode = true;
                 TestMode.SetTestMode(true);
                 TestMode.SetTestMode(true);
+                V2Method.SetTestUrl();
                 // 开启了测试模式;
                 // 开启了测试模式;
                 CommonMethod.GetProfileString("MOKAFactoryTools", "VirMAC", "B0-00-00-00-00-0B", MyString, 256);
                 CommonMethod.GetProfileString("MOKAFactoryTools", "VirMAC", "B0-00-00-00-00-0B", MyString, 256);
                 if (MyString.ToString().Equals("B0-00-00-00-00-0B"))
                 if (MyString.ToString().Equals("B0-00-00-00-00-0B"))