|
@@ -77,7 +77,7 @@ public class SceneRepairController {
|
|
|
String[] arr = new String[]{
|
|
|
"KJ-t-VJNe28ZImv",
|
|
|
"KJ-t-0qmAovuPVD",
|
|
|
- "t-CgTJHQHxpp ",
|
|
|
+ "t-CgTJHQHxpp",
|
|
|
"t-2KZ4MQv",
|
|
|
"t-l1UFUWU9Bw",
|
|
|
"t-qFJGbpu",
|
|
@@ -92,7 +92,11 @@ public class SceneRepairController {
|
|
|
String localPath = String.format(ConstantFilePath.DATABUFFER_FORMAT, num) + "hot.json";
|
|
|
String ossPath = String.format(ConstantFilePath.DATA_PATH_FORMAT, num) + "hot.json";
|
|
|
String objectContent = uploadToOssUtil.getObjectContent(bucket, ossPath);
|
|
|
- FileUtils.writeFile(localPath, objectContent);
|
|
|
+ if(StrUtil.isEmpty(objectContent)){
|
|
|
+ FileUtils.deleteFile(localPath);
|
|
|
+ }else{
|
|
|
+ FileUtils.writeFile(localPath, objectContent);
|
|
|
+ }
|
|
|
}
|
|
|
//17264
|
|
|
return ResultData.ok();
|