From 7cbbe62fea4efded9cf73939a860f7bbb2169458 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 23 三月 2023 18:07:57 +0800 Subject: [PATCH] 1 --- ExportMap/Controllers/ConvertController.cs | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs index 28c8d48..428ff47 100644 --- a/ExportMap/Controllers/ConvertController.cs +++ b/ExportMap/Controllers/ConvertController.cs @@ -32,13 +32,13 @@ return ResponseMsg<string>.fail("浠ょ墝鏃犳晥"); } - int count = ConvertUtils.Convert(args); - if (0 == count) + List<int> rs = ConvertUtils.Convert(args); + if (null == rs || rs.Count == 0) { return ResponseMsg<string>.fail("澶辫触"); } - return ResponseMsg<string>.success("鎴愬姛", "ok", count); + return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count); } catch (Exception ex) { @@ -73,13 +73,13 @@ } string err = null; - int count = XYZUtils.Generate(args, ref err); - if (0 == count) + List<int> rs = XYZUtils.Generate(args, ref err); + if (null == rs || rs.Count == 0) { return ResponseMsg<string>.fail(null == err ? "澶辫触" : err); } - return ResponseMsg<string>.success("鎴愬姛", "ok", count); + return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count); } catch (Exception ex) { @@ -112,13 +112,13 @@ SGUtils utils = new SGUtils(); string err = null; - int count = utils.Release(args, ref err); - if (0 == count) + List<int> rs = utils.Release(args, ref err); + if (null == rs || rs.Count == 0) { return ResponseMsg<string>.fail(null == err ? "澶辫触" : err); } - return ResponseMsg<string>.success("鎴愬姛", "ok", count); + return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count); } catch (Exception ex) { -- Gitblit v1.9.3