From 00700f5ef12d33da898e9b4391aa5b4a09828ee3 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 10 十一月 2022 10:16:53 +0800
Subject: [PATCH] 1

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

diff --git a/ExportMap/Controllers/ExportController.cs b/ExportMap/Controllers/ExportController.cs
index bd0ca0c..b7c6cc6 100644
--- a/ExportMap/Controllers/ExportController.cs
+++ b/ExportMap/Controllers/ExportController.cs
@@ -1,4 +1,5 @@
-锘縰sing LFServer.Models;
+锘縰sing LFServer.cs;
+using LFServer.Models;
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -11,16 +12,16 @@
     public class ExportController : ApiController
     {
         [HttpPost]
-        public void Start([FromBody]ExportArgs args)
+        public string Start([FromBody]ExportArgs args)
         {
             if (args == null || 
                 string.IsNullOrWhiteSpace(args.layers)||
                 (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0))
             {
-                return;
+                return null;
             }
 
-            args.SetDefault();
+            return ExportUtil.Generate(args);
         }
     }
 }

--
Gitblit v1.9.3