管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-10 00700f5ef12d33da898e9b4391aa5b4a09828ee3
ExportMap/Controllers/ExportController.cs
@@ -1,4 +1,5 @@
using LFServer.Models;
using LFServer.cs;
using LFServer.Models;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,16 +12,16 @@
    public class ExportController : ApiController
    {
        [HttpPost]
        public void Start([FromBody]ExportArgs args)
        public string Start([FromBody]ExportArgs args)
        {
            if (args == null || 
                string.IsNullOrWhiteSpace(args.layers)||
                (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0))
            {
                return;
                return null;
            }
            args.SetDefault();
            return ExportUtil.Generate(args);
        }
    }
}