xiewj hace 1 año
padre
commit
22a9abaa36

+ 1 - 0
src/main/java/com/fdkk/bim/controller/FileController.java

@@ -86,6 +86,7 @@ public class FileController extends BaseController {
         translateDTO.setCallback("http://d40g77q9pmap.ngrok.xiaomiqiu123.top/bim/call/translate/"+fileId);
         Map<String, Object> config=new HashMap<>();
         config.put("toBimtiles",true);
+        config.put("bimtilesVersion","V2");
         translateDTO.setConfig(config);
         BimResult<FileBean> translate = bimFaceClient.translate(translateDTO);
         return success(translate);

+ 1 - 0
src/main/java/com/fdkk/bim/service/impl/BimFaceServiceImpl.java

@@ -168,6 +168,7 @@ public class BimFaceServiceImpl extends ServiceImpl<BimFaceMapper, BimFaceEntity
         translateDTO.setCallback(bimConfig.getWebSite()+"/bim/call/translate/"+bimFaceEntity.getId());
         Map<String, Object> config=new HashMap<>();
         config.put("toBimtiles",true);
+        config.put("bimtilesVersion","V2");
         translateDTO.setConfig(config);
         BimResult<FileBean> translate = bimFaceClient.translate(translateDTO);
         if (translate.getCode().equalsIgnoreCase("success")&& ObjectUtil.isNotNull(translate.getData())) {