|
@@ -3077,12 +3077,12 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
sceneProEdit.setUpdateTime(Calendar.getInstance().getTime());
|
|
|
sceneProEditService.updateById(sceneProEdit);
|
|
|
if("V2".equals(scenePro.getBuildType())){
|
|
|
- MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProUrl + scenePro.getNum(), ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+".png", path + File.separator + fileName);
|
|
|
- MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProUrl + scenePro.getNum() + "&lang=en", ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+"_en.png", path + File.separator + fileName);
|
|
|
+ MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProUrl + scenePro.getNum(), ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+".png", true, path + File.separator + fileName);
|
|
|
+ MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProUrl + scenePro.getNum() + "&lang=en", ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+"_en.png", true, path + File.separator + fileName);
|
|
|
}
|
|
|
if("V3".equals(scenePro.getBuildType())){
|
|
|
- MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProNewUrl + scenePro.getNum(), ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+".png", path + File.separator + fileName);
|
|
|
- MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProNewUrl + scenePro.getNum() + "&lang=en", ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+"_en.png", path + File.separator + fileName);
|
|
|
+ MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProNewUrl + scenePro.getNum(), ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+".png", true, path + File.separator + fileName);
|
|
|
+ MatrixToImageWriterUtil.createQRCode(mainUrl + sceneProNewUrl + scenePro.getNum() + "&lang=en", ConstantFilePath.BASE_PATH + File.separator + "sceneQRcode/"+scenePro.getNum()+"_en.png", true, path + File.separator + fileName);
|
|
|
}
|
|
|
}
|
|
|
return ResultData.ok(imagesBuf.toString() + fileName);
|
|
@@ -3424,15 +3424,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
//文件上传的位置可以自定义
|
|
|
-// String path = sceneProExt.getDataSource() + "_obj2txt";
|
|
|
-// String zipPath = path + "/zip/";
|
|
|
-// String filePath = path + "/extras/";
|
|
|
-// String resultPath = path + "/results/";
|
|
|
+ String path = sceneProExt.getDataSource() + "_obj2txt";
|
|
|
+ String zipPath = path + "/zip/";
|
|
|
+ String filePath = path + "/extras/";
|
|
|
+ String resultPath = path + "/results/";
|
|
|
|
|
|
- String path = "F:\\uploadModel" + "_obj2txt";
|
|
|
- String zipPath = path + "\\zip\\";
|
|
|
- String filePath = path + "\\extras\\";
|
|
|
- String resultPath = path + "\\results\\";
|
|
|
+// String path = "F:\\uploadModel" + "_obj2txt";
|
|
|
+// String zipPath = path + "\\zip\\";
|
|
|
+// String filePath = path + "\\extras\\";
|
|
|
+// String resultPath = path + "\\results\\";
|
|
|
|
|
|
//压缩文件处理:解压缩,解压缩后复制等操作
|
|
|
this.objAndImgFileHandler(resultPath, filePath, zipPath, file);
|
|
@@ -3478,7 +3478,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String uploadJsonPath = path + File.separator + "results" +File.separator+"upload.json";
|
|
|
boolean exist = ComputerUtil.checkComputeCompleted(uploadJsonPath, 5, 5000);
|
|
|
if(!exist){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_5042);
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_7013);
|
|
|
}
|
|
|
String uploadData = FileUtils.readFile(uploadJsonPath);
|
|
|
JSONObject uploadJson = null;
|