管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2024-11-07 5f80de49c4a00416591054180bf809a12a76d686
ExportMap/Controllers/ExportController.cs
@@ -1,6 +1,5 @@
using ExportMap.cs;
using LFServer.cs;
using LFServer.Models;
using ExportMap.Models;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -8,7 +7,7 @@
using System.Net.Http;
using System.Web.Http;
namespace LFServer.Controllers
namespace ExportMap.Controllers
{
    public class ExportController : ApiController
    {
@@ -34,14 +33,14 @@
                string imgPath = ExportUtil.Generate(args, ref err);
                if (string.IsNullOrEmpty(imgPath))
                {
                    return ResponseMsg<string>.fail(err);
                    return ResponseMsg<string>.fail(null == err ? "生成失败" : err);
                }
                return ResponseMsg<string>.success("成功", imgPath);
            }
            catch (Exception ex)
            {
                LogOut.Error(ex.StackTrace);
                LogOut.Error(ex.Message + "\r\n" + ex.StackTrace);
                return ResponseMsg<string>.fail(ex.Message);
            }
        }