|
@@ -2,6 +2,7 @@ package com.fdkankan.contro.factory.UserEditData;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import cn.hutool.log.Log;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -24,6 +25,7 @@ import com.fdkankan.redis.constant.RedisKey;
|
|
|
import com.fdkankan.redis.constant.RedisLockKey;
|
|
|
import com.fdkankan.redis.util.RedisLockUtil;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -39,6 +41,7 @@ import java.util.stream.Collectors;
|
|
|
/**
|
|
|
* 初始化空间模型
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Component("filtersHandler")
|
|
|
public class FiltersHandler implements UserEditDataHandler {
|
|
|
|
|
@@ -81,8 +84,10 @@ public class FiltersHandler implements UserEditDataHandler {
|
|
|
|
|
|
//获取全景图id
|
|
|
String visionPath = dataSource + File.separator + "results" + File.separator + "vision.txt";
|
|
|
-
|
|
|
List<String> panoramaUuidList = SceneUtil.getPanoramaUuidList(visionPath);
|
|
|
+
|
|
|
+ log.info("panoramaUuidList:", JSON.toJSONString(panoramaUuidList));
|
|
|
+
|
|
|
//{saturation: 0.35, brightness: 0.35, contrast: 0.4, temperature: 0.25, id: "0"}
|
|
|
List<JSONObject> collect = panoramaUuidList.stream().map(v -> {
|
|
|
JSONObject jsonObject = new JSONObject();
|