|
@@ -176,7 +176,7 @@ public class ManagerController {
|
|
|
|
|
|
boolean falg = true;
|
|
|
for (String targetPath : allList) {
|
|
|
-
|
|
|
+ log.info("解压后的-{}文件全路径是-{}", fileId, targetPath);
|
|
|
if(targetPath.toLowerCase().endsWith(".max")){
|
|
|
falg = false;
|
|
|
new File(targetPath).renameTo(new File(targetPath.substring(
|
|
@@ -269,6 +269,7 @@ public class ManagerController {
|
|
|
ObjProcess.conformity3(buildPath + modelUploadEntity.getObjPath().replace(".obj", "-baseCopy.obj"),
|
|
|
buildPath + modelUploadEntity.getObjPath().replace(".obj", "-base.obj") , json.getString("matrix").replace("[", "").replace("]", ""));
|
|
|
|
|
|
+
|
|
|
if(StringUtil.isNotEmpty(compressionRatioHasChanged) &&
|
|
|
Boolean.valueOf(compressionRatioHasChanged) &&
|
|
|
json.containsKey("compressionRatio")){
|
|
@@ -284,6 +285,7 @@ public class ManagerController {
|
|
|
jsonObject.put("name", modelUploadEntity.getFileId());
|
|
|
jsonObject.put("taskId", String.valueOf(modelUploadEntity.getUserId()));
|
|
|
jsonObject.put("data", json);
|
|
|
+ log.info("保存数据,准备修改obj文件数据-{}", jsonObject.toJSONString());
|
|
|
String result = OkHttpUtils.httpPostJson(modelBuildUrl + "fixmodel", jsonObject.toJSONString());
|
|
|
log.info(modelBuildUrl + "fixmodel:" + result);
|
|
|
return Result.success();
|