From a0ea5dbbabd0dec22f287a536d7526f2df805ad5 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 06 五月 2023 12:51:33 +0800
Subject: [PATCH] 1

---
 ExportMap/Controllers/ConvertController.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs
index 76ad7f2..303acd2 100644
--- a/ExportMap/Controllers/ConvertController.cs
+++ b/ExportMap/Controllers/ConvertController.cs
@@ -161,6 +161,21 @@
                 {
                     return ResponseMsg<string>.fail("浠ょ墝鏃犳晥");
                 }
+                if (string.IsNullOrWhiteSpace(args.dircode))
+                {
+                    return ResponseMsg<string>.fail("鍗曚綅浠g爜涓嶈兘涓虹┖");
+                }
+
+                if (args.min < 0) args.min = 0;
+                if (args.min > 22) args.min = 22;
+                if (args.max < 0) args.max = 0;
+                if (args.max > 22) args.max = 22;
+                if (args.min > args.max)
+                {
+                    int tmp = args.min;
+                    args.min = args.max;
+                    args.max = tmp;
+                }
 
                 string err = null;
                 List<int> rs = TerraUtils.Generate(args, ref err);

--
Gitblit v1.9.3