|
@@ -40,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
+import sun.reflect.misc.FieldUtil;
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
@@ -140,7 +141,7 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
|
|
|
String target = String.format(ConstantFilePath.SCENE_IMAGES_PATH_V4, num);
|
|
String target = String.format(ConstantFilePath.SCENE_IMAGES_PATH_V4, num);
|
|
String targetImagesPath = target + "extras/images/";
|
|
String targetImagesPath = target + "extras/images/";
|
|
- FileUtils.deleteDirectory(targetImagesPath);
|
|
|
|
|
|
+ FileUtil.del(targetImagesPath);
|
|
String ossVisionTxtPath = ossImagePath + "vision.txt";
|
|
String ossVisionTxtPath = ossImagePath + "vision.txt";
|
|
fYunFileService.downloadFile(ossVisionTxtPath, target + "extras" + File.separator + "vision.txt");
|
|
fYunFileService.downloadFile(ossVisionTxtPath, target + "extras" + File.separator + "vision.txt");
|
|
|
|
|
|
@@ -174,7 +175,7 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
if(!exist){
|
|
if(!exist){
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_7013);
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_7013);
|
|
}
|
|
}
|
|
- String uploadData = FileUtils.readFile(uploadJsonPath);
|
|
|
|
|
|
+ String uploadData = FileUtil.readUtf8String(uploadJsonPath);
|
|
JSONObject uploadJson = null;
|
|
JSONObject uploadJson = null;
|
|
JSONArray array = null;
|
|
JSONArray array = null;
|
|
if(uploadData!=null) {
|
|
if(uploadData!=null) {
|