From 3e707d56a647c29055e1e64800a9300e9c1aa091 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 12 十一月 2022 14:41:35 +0800
Subject: [PATCH] 1

---
 ExportMap/Controllers/ExportController.cs |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ExportMap/Controllers/ExportController.cs b/ExportMap/Controllers/ExportController.cs
index beeaf36..43dd131 100644
--- a/ExportMap/Controllers/ExportController.cs
+++ b/ExportMap/Controllers/ExportController.cs
@@ -1,4 +1,5 @@
-锘縰sing LFServer.cs;
+锘縰sing ExportMap.cs;
+using LFServer.cs;
 using LFServer.Models;
 using System;
 using System.Collections.Generic;
@@ -29,16 +30,18 @@
                     return ResponseMsg<string>.fail("浠ょ墝鏃犳晥");
                 }
 
-                string imgPath = ExportUtil.Generate(args);
+                string err = null;
+                string imgPath = ExportUtil.Generate(args, ref err);
                 if (string.IsNullOrEmpty(imgPath))
                 {
-                    return ResponseMsg<string>.fail("澶辫触");
+                    return ResponseMsg<string>.fail(err);
                 }
 
                 return ResponseMsg<string>.success("鎴愬姛", imgPath);
             }
             catch (Exception ex)
             {
+                LogOut.Error(ex.StackTrace);
                 return ResponseMsg<string>.fail(ex.Message);
             }
         }

--
Gitblit v1.9.3