|
@@ -430,16 +430,20 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
redisUtil.set(String.format(RedisKey.SCENE_BUILD_FINISH_NUM, sceneCode), "1");
|
|
redisUtil.set(String.format(RedisKey.SCENE_BUILD_FINISH_NUM, sceneCode), "1");
|
|
|
|
|
|
- Map<String, Object> ext = message.getExt();
|
|
|
|
- Map<String, Object> params = new HashMap<>();
|
|
|
|
- params.put("website", scenePlusExt.getWebSite());
|
|
|
|
- params.put("title", scenePlus.getTitle());
|
|
|
|
- params.put("customUserId", ext.get("customUserId"));
|
|
|
|
- params.put("gps", ext.get("gps"));
|
|
|
|
|
|
+ try {
|
|
|
|
+ Map<String, Object> ext = message.getExt();
|
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
|
+ params.put("website", scenePlusExt.getWebSite());
|
|
|
|
+ params.put("title", scenePlus.getTitle());
|
|
|
|
+ params.put("customUserId", ext.get("customUserId"));
|
|
|
|
+ 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("status", CommonSuccessStatus.SUCCESS.code());
|
|
|
|
- HttpUtil.post(buildProgressUrl, JSON.toJSONString(params), 2000);
|
|
|
|
|
|
+ params.put("progress", 100);
|
|
|
|
+ params.put("status", CommonSuccessStatus.SUCCESS.code());
|
|
|
|
+ HttpUtil.post(buildProgressUrl, JSON.toJSONString(params), 2000);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ log.info("发送计算进度接口请求失败");
|
|
|
|
+ }
|
|
|
|
|
|
log.info("场景计算结果处理结束,场景码:{}", sceneCode);
|
|
log.info("场景计算结果处理结束,场景码:{}", sceneCode);
|
|
|
|
|