|
@@ -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)
|