From cf3251e92561ad3f0a8da2ad1b8bfd76bd8ba2c9 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 13 九月 2024 17:21:23 +0800 Subject: [PATCH] 1 --- src/main/java/com/se/simu/service/WaterService.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/se/simu/service/WaterService.java b/src/main/java/com/se/simu/service/WaterService.java index d278139..474706e 100644 --- a/src/main/java/com/se/simu/service/WaterService.java +++ b/src/main/java/com/se/simu/service/WaterService.java @@ -23,15 +23,15 @@ @Value("${sys.ver}") String ver; - @Value("${sys.path.data}") - String dataPath; + @Value("${sys.path.out}") + String outPath; /** * 鑾峰彇鍏冩暟鎹俊鎭� */ public byte[] getLayerJson(String serviceName) { try { - String filePath = dataPath + File.separator + serviceName + File.separator + "layer.json"; + String filePath = outPath + File.separator + serviceName + File.separator + "layer.json"; File dat = new File(filePath); if (!dat.exists()) { @@ -54,25 +54,25 @@ * 鑾峰彇鍦板舰楂樺害鍥� */ public String getTerraMap(String serviceName, Integer width, Integer height) { - return dataPath + File.separator + serviceName + File.separator + "terrain" + File.separator + width + "_" + height + ".png"; + return outPath + File.separator + serviceName + File.separator + "terrain" + File.separator + width + "_" + height + ".png"; } /** * 鑾峰彇姘撮潰楂樺害鍥� */ public String getWaterMap(String serviceName, Integer width, Integer height, Long timestamp) { - return dataPath + File.separator + serviceName + File.separator + "waters" + File.separator + timestamp + File.separator + width + "_" + height + ".png"; + return outPath + File.separator + serviceName + File.separator + "waters" + File.separator + timestamp + File.separator + width + "_" + height + ".png"; } /** * 鑾峰彇姘存祦鍚戞祦閫熷浘 */ public String getFlowMap(String serviceName, Integer width, Integer height, Long timestamp) { - return dataPath + File.separator + serviceName + File.separator + "flows" + File.separator + timestamp + File.separator + width + "_" + height + ".png"; + return outPath + File.separator + serviceName + File.separator + "flows" + File.separator + timestamp + File.separator + width + "_" + height + ".png"; } /** - * 鑾峰彇鍥惧眰 + * 鑾峰彇鍥惧眰 * */ public Layer getLayer(String serviceName) { Layer layer = new Layer(); -- Gitblit v1.9.3