gushoubang пре 11 месеци
родитељ
комит
6192188d06

+ 4 - 16
onemap-modules/onemap-spatial/src/main/java/com/onemap/spatial/service/impl/ImageServiceImpl.java

@@ -45,25 +45,13 @@ import java.util.UUID;
  */
 @Service
 public class ImageServiceImpl implements IImageService {
-    @Value("${Path.WinRsImage}")
-    public String winRsImage;
-    @Value("${Path.LinuxRxImage}")
-    public String linuxRxImage;
-
-    @Value("${Path.WinRootPath}")
-    public String WinRootPath;
-    @Value("${Path.LinuxRootPath}")
-    public String LinuxRootPath;
+    @Value("${Path.RsImage}")
+    public String rsImage;
+    @Value("${Path.RootPath}")
+    public String rootPath;
 
     @Override
     public String getSensingImage(WktsVo wktsVo) throws Exception {
-        String rsImage = winRsImage;
-        String rootPath = WinRootPath;
-        if (System.getProperty("os.name").toLowerCase().contains("linux")) {
-            rsImage = linuxRxImage;
-            rootPath = LinuxRootPath;
-        }
-
         // 图片保存路径
         String fileDir = rootPath + "/images/" + UUID.randomUUID().toString() + "/";
         File dir = new File(fileDir);