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