From 110685ca201361af20d758fce7cf8a89ab5362b6 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 30 七月 2023 11:03:49 +0800 Subject: [PATCH] 1 --- ExportMap/Controllers/ConvertController.cs | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs index a851b75..4b71662 100644 --- a/ExportMap/Controllers/ConvertController.cs +++ b/ExportMap/Controllers/ConvertController.cs @@ -230,7 +230,34 @@ if (null != msg) return msg; string err = null; - List<int> rs = Tools.DeleteFiles(args, ref err); + List<int> rs = CommonUtils.DeleteFiles(args, ref err); + if (null == rs || rs.Count == 0) + { + return ResponseMsg<string>.fail(null == err ? "澶辫触" : err); + } + + return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count); + } + catch (Exception ex) + { + LogOut.Error(ex.Message + "\r\n" + ex.StackTrace); + return ResponseMsg<string>.fail(ex.Message); + } + } + + /// <summary> + /// 鍒犻櫎浠诲姟 + /// </summary> + [HttpPost] + public ResponseMsg<string> DeleteTask([FromBody]XYZArgs args) + { + try + { + ResponseMsg<string> msg = checkArgs(args, true); + if (null != msg) return msg; + + string err = null; + List<int> rs = CommonUtils.DeleteTask(args, ref err); if (null == rs || rs.Count == 0) { return ResponseMsg<string>.fail(null == err ? "澶辫触" : err); -- Gitblit v1.9.3