管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-06-27 a9d3642f93bdb25b5d72c8e28ee14d66ac7c4ea3
ExportMap/Controllers/TBController.cs
@@ -17,18 +17,16 @@
        {
            try
            {
                if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(token))
                    return ResponseMsg<string>.fail("path和token参数不能为空");
                if (!ExportUtil.VerifyToken(token))
                    return ResponseMsg<string>.fail("令牌无效");
                if (!Directory.Exists(path))
                    return ResponseMsg<string>.fail("文件路径不存在");
                if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(token)) return ResponseMsg<string>.fail("path和token参数不能为空");
                if (!ExportUtil.VerifyToken(token)) return ResponseMsg<string>.fail("令牌无效");
                if (!Directory.Exists(path)) return ResponseMsg<string>.fail("文件路径不存在");
                string err = null;
                string rs = TBUtils.CreateMpt(path, ref err);
                if (string.IsNullOrEmpty(rs))
                    return ResponseMsg<string>.fail(null == err ? "失败" : err);
                if (string.IsNullOrEmpty(rs)) return ResponseMsg<string>.fail(null == err ? "失败" : err);
                return ResponseMsg<string>.success("成功", rs, 1);
            }