From 788a78efe33a76ffa80ba6b8430a593cd883c508 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 08 十一月 2022 18:00:31 +0800 Subject: [PATCH] 1 --- ExportMap/Controllers/ExportController.cs | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ExportMap/Controllers/ExportController.cs b/ExportMap/Controllers/ExportController.cs index 9aa25b6..bd0ca0c 100644 --- a/ExportMap/Controllers/ExportController.cs +++ b/ExportMap/Controllers/ExportController.cs @@ -1,4 +1,5 @@ -锘縰sing System; +锘縰sing LFServer.Models; +using System; using System.Collections.Generic; using System.Linq; using System.Net; @@ -10,9 +11,16 @@ public class ExportController : ApiController { [HttpPost] - public void start([FromBody]string value) + public void Start([FromBody]ExportArgs args) { + if (args == null || + string.IsNullOrWhiteSpace(args.layers)|| + (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0)) + { + return; + } + args.SetDefault(); } } } -- Gitblit v1.9.3