Ver Fonte

标签下载方法补充

Hcsy há 8 anos atrás
pai
commit
67199e6a16
1 ficheiros alterados com 2 adições e 10 exclusões
  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);        
         }