|
@@ -347,6 +347,9 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
if (cameraType != 14) {
|
|
|
scenePlus.setPayStatus(commonService.getPayStatus(scenePlus.getCameraId(), space));
|
|
|
}
|
|
|
+
|
|
|
+ this.uploadStatusJson(scenePlus, scenePlusExt);
|
|
|
+
|
|
|
scenePlusService.updateById(scenePlus);
|
|
|
|
|
|
//国际环境需要发邮件通知
|
|
@@ -604,7 +607,11 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
fYunFileService.uploadFile(sceneJsonStr.getBytes(), dataViewPath + "scene.json");
|
|
|
//scenejson写入缓存
|
|
|
redisUtil.set(String.format(RedisKey.SCENE_JSON, num), sceneJsonStr);
|
|
|
+ }
|
|
|
|
|
|
+ private void uploadStatusJson(ScenePlus scenePlus, ScenePlusExt scenePlusExt){
|
|
|
+ String num = scenePlus.getNum();
|
|
|
+ String dataViewPath = String.format(UploadFilePath.DATA_VIEW_PATH, num);
|
|
|
// 上传status JSON.
|
|
|
JSONObject statusJson = new JSONObject();
|
|
|
//临时将-2改成1,app还没完全更新
|
|
@@ -618,7 +625,6 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
fYunFileService.uploadFile(ConstantFilePath.SCENE_PATH + "data/data" + num + File.separator + "status.json",
|
|
|
dataViewPath + "status.json");
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void createQrCode(String num, ScenePlusExt scenePlusExt, String qrLogo) {
|