|
@@ -81,6 +81,9 @@ public class RunBuild {
|
|
@Value("${max.obj.url}")
|
|
@Value("${max.obj.url}")
|
|
private String maxObjUrl;
|
|
private String maxObjUrl;
|
|
|
|
|
|
|
|
+ @Value("${maxToDatasmith.url}")
|
|
|
|
+ private String maxToDatasmithUrl;
|
|
|
|
+
|
|
@Value("${driveLetter}")
|
|
@Value("${driveLetter}")
|
|
private String driveLetter;
|
|
private String driveLetter;
|
|
|
|
|
|
@@ -878,7 +881,7 @@ public class RunBuild {
|
|
//开始计时
|
|
//开始计时
|
|
timer.start();
|
|
timer.start();
|
|
timer.start("global");
|
|
timer.start("global");
|
|
- String maxUrl = maxObjUrl + "maxToDatasmith?uuid=" + fileId + "&max=" + maxName + "&flag=" + flag + "&resData=" + data;
|
|
|
|
|
|
+ String maxUrl = maxToDatasmithUrl + "?uuid=" + fileId + "&max=" + maxName + "&flag=" + flag + "&resData=" + data;
|
|
RunBuild.log.info("请求maxToDataSmith地址-{}", maxUrl);
|
|
RunBuild.log.info("请求maxToDataSmith地址-{}", maxUrl);
|
|
OkHttpUtils.httpGet(maxUrl);
|
|
OkHttpUtils.httpGet(maxUrl);
|
|
RunBuild.log.info("运行maxToDataSmith结束-{}", fileId);
|
|
RunBuild.log.info("运行maxToDataSmith结束-{}", fileId);
|
|
@@ -1256,7 +1259,7 @@ public class RunBuild {
|
|
uploadToOssUtil.downloadFileTo4dTjw("domain/eHome/furniture/ue4data/" + productName + "/" + componentName + "/" + componentName + "-base.obj", uploadPath + ".obj");
|
|
uploadToOssUtil.downloadFileTo4dTjw("domain/eHome/furniture/ue4data/" + productName + "/" + componentName + "/" + componentName + "-base.obj", uploadPath + ".obj");
|
|
uploadToOssUtil.downloadFileTo4dTjw("domain/eHome/furniture/ue4data/" + productName + "/" + componentName + "/" + componentName + ".mtl", uploadPath + ".mtl");
|
|
uploadToOssUtil.downloadFileTo4dTjw("domain/eHome/furniture/ue4data/" + productName + "/" + componentName + "/" + componentName + ".mtl", uploadPath + ".mtl");
|
|
uploadToOssUtil.downloadFileTo4dTjw("domain/eHome/furniture/ue4data/" + productName + "/" + componentName + "/" + componentName + ".jpg", uploadPath + ".jpg");
|
|
uploadToOssUtil.downloadFileTo4dTjw("domain/eHome/furniture/ue4data/" + productName + "/" + componentName + "/" + componentName + ".jpg", uploadPath + ".jpg");
|
|
-
|
|
|
|
|
|
+
|
|
ComponentModelUploadEntity componentEntity = componentModelUploadService.findById(component.getLong("id"));
|
|
ComponentModelUploadEntity componentEntity = componentModelUploadService.findById(component.getLong("id"));
|
|
if (componentEntity != null) {
|
|
if (componentEntity != null) {
|
|
componentEntity.setThumPath(uploadPath.replace(buildPath, "") + "_preview.jpg");
|
|
componentEntity.setThumPath(uploadPath.replace(buildPath, "") + "_preview.jpg");
|