|
@@ -112,6 +112,9 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
//下载资源到本地
|
|
//下载资源到本地
|
|
this.downLoadSource(message, message.getPath());
|
|
this.downLoadSource(message, message.getPath());
|
|
|
|
|
|
|
|
+ //删除project.json文件
|
|
|
|
+ FileUtil.del(message.getPath().concat(File.separator).concat("project.json"));
|
|
|
|
+
|
|
if (!ObjectUtils.isEmpty(modelType)) {
|
|
if (!ObjectUtils.isEmpty(modelType)) {
|
|
// 修改dataFdage文件
|
|
// 修改dataFdage文件
|
|
JSONObject fdageJson = JSONObject.parseObject(FileUtils.readFile(message.getPath().concat("/capture/data.fdage")));
|
|
JSONObject fdageJson = JSONObject.parseObject(FileUtils.readFile(message.getPath().concat("/capture/data.fdage")));
|
|
@@ -271,7 +274,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
params.put("title", scenePlus.getTitle());
|
|
params.put("title", scenePlus.getTitle());
|
|
params.put("customUserId", ext.get("customUserId"));
|
|
params.put("customUserId", ext.get("customUserId"));
|
|
params.put("gps", ext.get("gps"));
|
|
params.put("gps", ext.get("gps"));
|
|
- params.put("totalTime", Integer.valueOf(redisUtil.get(String.format(RedisKey.SCENE_BUILD_EXPECT_TOTAL_TIME_NUM,sceneCode))));
|
|
|
|
|
|
+ params.put("totalTime", Integer.valueOf(redisUtil.get(String.format(RedisKey.SCENE_BUILD_EXPECT_TOTAL_TIME_NUM, sceneCode))));
|
|
params.put("progress", 100);
|
|
params.put("progress", 100);
|
|
HttpUtil.post(buildProgressUrl, JSON.toJSONString(params), 2000);
|
|
HttpUtil.post(buildProgressUrl, JSON.toJSONString(params), 2000);
|
|
|
|
|