JeffWang 2 лет назад
Родитель
Сommit
a684bff9a3
2 измененных файлов с 7 добавлено и 0 удалено
  1. 6 0
      FactoryTool_CShare/Business/V2Method.cs
  2. 1 0
      FactoryTool_CShare/Views/Login.cs

+ 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";
         }
 
+        public static void SetTestUrl()
+        {
+            if (TestMode.testMode)
+                url_getMessage = "http://test.scbc.qhmoka.com/scbc-server/clientType/getMessage.do";
+        }
+
         /// <summary>
         /// 
         /// </summary>

+ 1 - 0
FactoryTool_CShare/Views/Login.cs

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