|
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.File;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Service
|
|
@@ -59,6 +60,8 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
param.keySet().stream().forEach(k->{
|
|
|
infoJson.replace(k, param.get(k));
|
|
|
});
|
|
|
+ String sceneJsonKey = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "scene.json";
|
|
|
+ fYunFileService.uploadFile(infoJson.toJSONString().getBytes(StandardCharsets.UTF_8), sceneJsonKey);
|
|
|
|
|
|
String redisKey = String.format(RedisKey.SCENE_JSON, num);
|
|
|
redisUtil.del(redisKey);
|