|
@@ -324,6 +324,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
String icon = null;
|
|
String icon = null;
|
|
if (!ObjectUtils.isEmpty(jsonObject.getString("icon"))) {
|
|
if (!ObjectUtils.isEmpty(jsonObject.getString("icon"))) {
|
|
fYunFileService.copyFileInBucket(ConstantFilePath.OSS_PREFIX + prefix + jsonObject.getString("icon"),imgViewPath + jsonObject.getString("icon"));
|
|
fYunFileService.copyFileInBucket(ConstantFilePath.OSS_PREFIX + prefix + jsonObject.getString("icon"),imgViewPath + jsonObject.getString("icon"));
|
|
|
|
+ icon = fYunFileConfig.getHost() + imgViewPath + jsonObject.getString("icon");
|
|
}
|
|
}
|
|
|
|
|
|
JSONObject firmwareVersion = new JSONObject();
|
|
JSONObject firmwareVersion = new JSONObject();
|
|
@@ -348,6 +349,9 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
//重算的场景,先移除该场景对应的容量
|
|
//重算的场景,先移除该场景对应的容量
|
|
if (rebuild == 1) {
|
|
if (rebuild == 1) {
|
|
scenePlusService.resetSpace(sceneNum);
|
|
scenePlusService.resetSpace(sceneNum);
|
|
|
|
+
|
|
|
|
+ //删除oss的houst_floor.json(国际版可能会卡住)
|
|
|
|
+ fYunFileService.deleteFile(dataViewPath + "houst_floor.json");
|
|
} else {
|
|
} else {
|
|
//上传log-main.png
|
|
//上传log-main.png
|
|
fYunFileService.uploadFile(ConstantFilePath.LOGO_PATH + "logo-main.png", imgViewPath + "logo-main.png");
|
|
fYunFileService.uploadFile(ConstantFilePath.LOGO_PATH + "logo-main.png", imgViewPath + "logo-main.png");
|
|
@@ -378,9 +382,6 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
FileUtils.writeFile(localDataPath + "status.json", statusJson.toString());
|
|
FileUtils.writeFile(localDataPath + "status.json", statusJson.toString());
|
|
fYunFileService.uploadFile(localDataPath + "status.json", dataViewPath + "status.json");
|
|
fYunFileService.uploadFile(localDataPath + "status.json", dataViewPath + "status.json");
|
|
}
|
|
}
|
|
-
|
|
|
|
- //删除oss的houst_floor.json(国际版可能会卡住)
|
|
|
|
- fYunFileService.deleteFile(dataViewPath + "houst_floor.json");
|
|
|
|
if (cameraDetail.getCompanyId() != null) {
|
|
if (cameraDetail.getCompanyId() != null) {
|
|
Company company = companyService.getById(cameraDetail.getCompanyId());
|
|
Company company = companyService.getById(cameraDetail.getCompanyId());
|
|
if (company != null) {
|
|
if (company != null) {
|