Pārlūkot izejas kodu

测试接口变更:拼接方式修改,使用返回的host直接拼接接口名。

JeffWang 3 gadi atpakaļ
vecāks
revīzija
28c3cc8323
1 mainītis faili ar 1 papildinājumiem un 15 dzēšanām
  1. 1 15
      FactoryTool_CShare/Business/CommonMethod.cs

+ 1 - 15
FactoryTool_CShare/Business/CommonMethod.cs

@@ -508,21 +508,7 @@ namespace MOKA_Factory_Tools
             Stopwatch watch = new Stopwatch();
             watch.Start();
 
-            #region 新抄写接口预处理
-            if (TestMode.testMode == true)
-            { // 逆序去除"IDManage",再拼接"n-admin"
-                int nPos = url.LastIndexOf('/');
-                if (nPos > 0)
-                {
-                    url = url.Substring(0, nPos) + "/n-admin";
-                }
-                item.URL = url + "/bind/order";
-            }
-            else
-            {
-                item.URL = url + "/v1/bind/order";
-            }
-            #endregion
+            item.URL = url + "/v1/bind/order";
             item.Postdata = string.Format("{{\"orderNum\":\"{0}\",\"sn\":\"{1}\",\"psn\":\"{2}\",\"orderCode\":\"{3}\"}}", order, sn, psn, firetv_device_code);
             HttpResult httpResult = http.GetHtml(item);
             if (httpResult.StatusCode == System.Net.HttpStatusCode.OK)