JeffWang пре 3 година
родитељ
комит
1fb3169261
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12 0
      FactoryTool_CShare/Business/CommonMethod.cs

+ 12 - 0
FactoryTool_CShare/Business/CommonMethod.cs

@@ -1427,6 +1427,12 @@ end:
                 List<PostDateClass> postList = new List<PostDateClass>();
                 postList.Add(new PostDateClass("sn", SN));
                 postList.Add(new PostDateClass("date", copydate));
+                #region 新接口统一返回带/v1,reportlist.do依旧采用旧host地址;
+                if (host.EndsWith("/v1"))
+                {
+                    host = host.Replace("/v1", "");
+                }
+                #endregion
                 ParseText = FormPost.postFileMessage(host + "/reportlist.do?", postList, out status, timeout);
                 if (status)
                 {
@@ -1492,6 +1498,12 @@ end:
             bool status;
             try
             {
+                #region 新接口统一返回带/v1,reportlist.do依旧采用旧host地址;
+                if (host.EndsWith("/v1"))
+                {
+                    host = host.Replace("/v1", "");
+                }
+                #endregion
                 ParseText = FormPost.postFileMessage(host + "/reportlist.do?", postList, out status, 30000);
                 if (status)
                 {