管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-12 3e707d56a647c29055e1e64800a9300e9c1aa091
ExportMap/Controllers/ExportController.cs
@@ -1,4 +1,5 @@
using LFServer.cs;
using ExportMap.cs;
using LFServer.cs;
using LFServer.Models;
using System;
using System.Collections.Generic;
@@ -29,16 +30,18 @@
                    return ResponseMsg<string>.fail("令牌无效");
                }
                string imgPath = ExportUtil.Generate(args);
                string err = null;
                string imgPath = ExportUtil.Generate(args, ref err);
                if (string.IsNullOrEmpty(imgPath))
                {
                    return ResponseMsg<string>.fail("失败");
                    return ResponseMsg<string>.fail(err);
                }
                return ResponseMsg<string>.success("成功", imgPath);
            }
            catch (Exception ex)
            {
                LogOut.Error(ex.StackTrace);
                return ResponseMsg<string>.fail(ex.Message);
            }
        }