|
@@ -56,5 +56,20 @@ public class SceneUtil {
|
|
|
return imageList;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据dataSource获取原始资源目录
|
|
|
+ * @param dataSource
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static String getHomePath(String dataSource) {
|
|
|
+ String homePath = ConstantFilePath.OSS_PREFIX
|
|
|
+ + dataSource.replace(ConstantFilePath.BUILD_MODEL_PATH, "")
|
|
|
+ .replace(ConstantFilePath.BUILD_MODEL_LASER_PATH, "");
|
|
|
+ if (!homePath.endsWith("/")) {
|
|
|
+ homePath = homePath.concat("/");
|
|
|
+ }
|
|
|
+ return homePath;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|