| | |
| | | using LFServer.cs; |
| | | using ExportMap.cs; |
| | | using LFServer.cs; |
| | | using LFServer.Models; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | 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); |
| | | } |
| | | } |