Browse Source

标签下载方法补充

Hcsy 8 năm trước cách đây
mục cha
commit
67199e6a16
1 tập tin đã thay đổi với 2 bổ sung10 xóa
  1. 2 10
      UAS-MES/PublicMethod/BaseUtil.cs

+ 2 - 10
UAS-MES/PublicMethod/BaseUtil.cs

@@ -237,16 +237,8 @@ namespace UAS_MES.PublicMethod
         /// <returns></returns>
         public static string GetLabelUrl(string URL, string LabelName, System.DateTime time)
         {
-            //如果是传入的数据是从FTP取的文件
-            if (URL.Contains("ftp:"))
-            {
-                ftpOperater ftp = new ftpOperater();
-                return ftp.Download(LabelName);
-            }
-            else
-            {
-                return URL;
-            }
+             ftpOperater ftp = new ftpOperater();
+             return ftp.DownLoadFromSharePath(URL, LabelName);        
         }