|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.model.utils;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -45,6 +46,9 @@ public class SceneUtil {
|
|
|
* @return
|
|
|
*/
|
|
|
public static List<String> getPanoramaImageList(String visionJson){
|
|
|
+ if(StrUtil.isEmpty(visionJson)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
JSONObject visionObject = JSON.parseObject(visionJson);
|
|
|
JSONArray sweepLocations = visionObject.getJSONArray("sweepLocations");
|
|
|
List<String> imageList = sweepLocations.parallelStream().map(o -> {
|