|
@@ -38,6 +38,8 @@ public class ModelKindHandler {
|
|
|
private IScenePlusService scenePlusService;
|
|
|
@Autowired
|
|
|
private IScenePlusExtService scenePlusExtService;
|
|
|
+ @Autowired
|
|
|
+ private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
@XxlJob("repairModelKind")
|
|
|
private void repairModelKind(){
|
|
@@ -47,7 +49,7 @@ public class ModelKindHandler {
|
|
|
list.stream().forEach(plus->{
|
|
|
try {
|
|
|
String sceneJson = String.format(UploadFilePath.DATA_VIEW_PATH, plus.getNum()) + "scene.json";
|
|
|
- JSONObject jsonObject = JSON.parseObject(sceneJson);
|
|
|
+ JSONObject jsonObject = JSON.parseObject(fYunFileService.getFileContent(sceneJson));
|
|
|
if(Objects.isNull(jsonObject) || Objects.isNull(jsonObject.getString("modelKind")) || !"3dtiles".equals(jsonObject.getString("modelKind"))){
|
|
|
ScenePlusExt one = scenePlusExtService.getOne(new LambdaQueryWrapper<ScenePlusExt>().eq(ScenePlusExt::getPlusId, plus.getId()));
|
|
|
one.setModelKind("dam");
|