|
@@ -73,32 +73,6 @@ public class SceneRepairController {
|
|
|
|
|
|
@GetMapping("/test")
|
|
|
public ResultData test() throws Exception{
|
|
|
- //户型图上传
|
|
|
- String[] arr = new String[]{
|
|
|
- "KJ-t-VJNe28ZImv",
|
|
|
- "KJ-t-0qmAovuPVD",
|
|
|
- "t-CgTJHQHxpp",
|
|
|
- "t-2KZ4MQv",
|
|
|
- "t-l1UFUWU9Bw",
|
|
|
- "t-qFJGbpu",
|
|
|
- "t-Pfz5oq8",
|
|
|
- "t-FI8VKsJ",
|
|
|
- "t-yAWONOn",
|
|
|
- "t-OZsRlRq",
|
|
|
- "t-iltt6PQ",
|
|
|
- "KK-t-KTUZz7QdX6"
|
|
|
- };
|
|
|
- for (String num : arr) {
|
|
|
- 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);
|
|
|
- if(StrUtil.isEmpty(objectContent)){
|
|
|
- FileUtils.deleteFile(localPath);
|
|
|
- }else{
|
|
|
- FileUtils.writeFile(localPath, objectContent);
|
|
|
- }
|
|
|
- }
|
|
|
- //17264
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|