From af2c84bc9eb5afb47cf3b8849bb126387d86d755 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 16 八月 2024 13:59:55 +0800 Subject: [PATCH] 1 --- Turf/Controllers/AiController.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Turf/Controllers/AiController.cs b/Turf/Controllers/AiController.cs index 242f4b7..814b782 100644 --- a/Turf/Controllers/AiController.cs +++ b/Turf/Controllers/AiController.cs @@ -13,9 +13,9 @@ { public class AiController : ApiController { - private string getSourcePath() + private string getDataCache() { - return ConfigurationManager.AppSettings["geoJsonPath"]; + return ConfigurationManager.AppSettings["dataCache"]; } [HttpPost] @@ -33,10 +33,10 @@ } //Thread.Sleep(10000); - String target = Path.Combine(args.data_dir, "results"); + String target = Path.Combine(getDataCache(), args.data_dir, "results"); if (!Directory.Exists(target)) Directory.CreateDirectory(target); - String source = getSourcePath(); + String source = Path.Combine(getDataCache(), "1722828277901", "results"); string[] files = Directory.GetFiles(source, "*.geojson"); foreach (string file in files) { -- Gitblit v1.9.3