|
@@ -40,7 +40,6 @@ import com.github.pagehelper.Page;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.util.StringUtil;
|
|
import com.github.pagehelper.util.StringUtil;
|
|
-import com.google.gson.JsonObject;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import net.coobird.thumbnailator.Thumbnails;
|
|
import net.coobird.thumbnailator.Thumbnails;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -3901,7 +3900,8 @@ public class SceneProServiceImpl extends BaseServiceImpl<SceneProEntity, String>
|
|
if (videos == null) {
|
|
if (videos == null) {
|
|
throw new BaseRuntimeException("json数据异常");
|
|
throw new BaseRuntimeException("json数据异常");
|
|
}
|
|
}
|
|
- data = ((JsonObject)videos).get("data");
|
|
|
|
|
|
+ JSONObject vo = (JSONObject) videos;
|
|
|
|
+ data = vo.get("data");
|
|
if (data == null || data instanceof JSONArray == false) {
|
|
if (data == null || data instanceof JSONArray == false) {
|
|
throw new BaseRuntimeException("json-data数据异常");
|
|
throw new BaseRuntimeException("json-data数据异常");
|
|
}
|
|
}
|
|
@@ -3919,7 +3919,8 @@ public class SceneProServiceImpl extends BaseServiceImpl<SceneProEntity, String>
|
|
if (videos == null) {
|
|
if (videos == null) {
|
|
throw new BaseRuntimeException("json数据异常");
|
|
throw new BaseRuntimeException("json数据异常");
|
|
}
|
|
}
|
|
- data = ((JsonObject)videos).get("data");
|
|
|
|
|
|
+ JSONObject vo = (JSONObject) videos;
|
|
|
|
+ data = vo.get("data");
|
|
if (data == null || data instanceof JSONArray == false) {
|
|
if (data == null || data instanceof JSONArray == false) {
|
|
throw new BaseRuntimeException("json-data数据异常");
|
|
throw new BaseRuntimeException("json-data数据异常");
|
|
}
|
|
}
|