Parcourir la source

mxg:上传失败时,错误提示

mengxiangge il y a 5 ans
Parent
commit
ad41d6706c

+ 1 - 1
Executer/MBIRevitBase/Services/UploadService.cs

@@ -57,7 +57,7 @@ namespace MBIRevitBase.Services
             catch (Exception e)
             {
                 Log4Net.Debug($"Execute failed,Message:{e.Message}");
-                return e.Message;
+                return "文件上传失败!"+e.Message;
             }
         }
         static void ReportError(Exception e, TimeSpan timeSpan, int intento, Context context)

+ 0 - 4
Starter/Starter/Program.cs

@@ -98,9 +98,6 @@ namespace ExportStart
         /// <returns></returns>
         private static void SaveResult(string param, string result)
         {
-            Console.WriteLine(param);
-            Log4Net.Debug(param);
-            Log4Net.Debug(result);
             try
             {
 
@@ -109,7 +106,6 @@ namespace ExportStart
                 string path = jObject[key].ToString();
                 if (path.IsNotNullEmpty())
                 {
-                    Console.WriteLine(path);
                     var dir = Directory.GetParent(path);
                     if (!dir.Exists)
                         dir.Create();