|
@@ -70,7 +70,7 @@ public class SceneServiceImpl extends IBaseServiceImpl<SceneEntity, Long> implem
|
|
|
// 注意网络下载会有缓存,必须加时间戳
|
|
|
// log.info("网络下载文件地址: {}", urlPath);
|
|
|
// String localBasePath = FILE_PATH + sceneCode;
|
|
|
- String localBasePath = configConstant.serverBasePath + sceneCode;
|
|
|
+ String localBasePath = configConstant.serverBasePath +"/" + sceneCode;
|
|
|
|
|
|
// 2. 将vision.modeldata 转 vision.json
|
|
|
String visionModelDataPath = localBasePath + "/" + visionModelDataName;
|
|
@@ -151,7 +151,7 @@ public class SceneServiceImpl extends IBaseServiceImpl<SceneEntity, Long> implem
|
|
|
return Result.failure("场景不存在");
|
|
|
}
|
|
|
|
|
|
- String basePath = configConstant.serverBasePath + sceneCode;
|
|
|
+ String basePath = configConstant.serverBasePath +"/" + sceneCode;
|
|
|
|
|
|
|
|
|
// 处理someData.json
|
|
@@ -392,7 +392,7 @@ public class SceneServiceImpl extends IBaseServiceImpl<SceneEntity, Long> implem
|
|
|
}
|
|
|
|
|
|
log.info("out data.js : {}", dataJsJson);
|
|
|
- String basePath = configConstant.serverBasePath + entity.getSceneCode();
|
|
|
+ String basePath = configConstant.serverBasePath +"/" + entity.getSceneCode();
|
|
|
|
|
|
String dataPath = basePath + "/hot/js/data.js";
|
|
|
FileUtil.writeUtf8String(dataJsJson.toJSONString(), dataPath);
|