Commit 44ef5dd8b93b138be7814dd25052fa91d931de62

Authored by 徐近程
1 parent 993268c0

update

src/main/java/com/cnlive/shenhe/api/VideosControllerApi.java
... ... @@ -74,9 +74,9 @@ public class VideosControllerApi {
74 74 ShyVideos shyVideos1 = new ShyVideos();
75 75 //g得到视频id去查询是否已有
76 76 String videoId = json.getString("videoId");
  77 + shyVideos1.setVideo_id(videoId);
77 78 //目击者类型 0-目击者 1-童声共济 2-全民健身 3-目击者政府监督
78 79 String source = json.getString("source");
79   - shyVideos1.setVideo_id(videoId);
80 80 Integer duration = json.getInteger("duration");
81 81 if (CommonUtils.isNotNull(duration)) duration = duration / 1000;
82 82 //获取栏目分类
... ... @@ -130,6 +130,7 @@ public class VideosControllerApi {
130 130 }
131 131 }
132 132 //查了,没有,直接插入数据库
  133 + shyVideos1.setSource(source);
133 134 shyVideos1.setVideo_title(json.getString("videoTitle"));
134 135 shyVideos1.setVideo_url(json.getString("videoUrl"));
135 136 String videoCoverUrl = json.getString("videoCoverUrl");
... ...