From d9b8f0d0d3ae71ecd46e0864ff9901e30bf104e4 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 21 六月 2023 11:41:32 +0800 Subject: [PATCH] 1 --- ExportMap/Controllers/ConvertController.cs | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs index ce196c1..2b4f1e2 100644 --- a/ExportMap/Controllers/ConvertController.cs +++ b/ExportMap/Controllers/ConvertController.cs @@ -143,9 +143,14 @@ ResponseMsg<string> msg = checkArgs(args); if (null != args) return msg; - // + string err = null; + List<int> rs = LasUtils.Generate(args, ref err); + if (null == rs || rs.Count == 0) + { + return ResponseMsg<string>.fail(null == err ? "澶辫触" : err); + } - return null; + return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count); } catch (Exception ex) { @@ -165,9 +170,14 @@ ResponseMsg<string> msg = checkArgs(args); if (null != args) return msg; - // + string err = null; + List<int> rs = OsgbUtils.Generate(args, ref err); + if (null == rs || rs.Count == 0) + { + return ResponseMsg<string>.fail(null == err ? "澶辫触" : err); + } - return null; + return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count); } catch (Exception ex) { -- Gitblit v1.9.3