管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-09-07 8d7a67ab1d635cb954337d8a767878ae526dd3dc
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);
            }
        }