Commit d19f2736bb39d12514d47ce05562e072204c5879

Authored by liwei2917
1 parent aa437cf0

修改失败的消息

src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
@@ -345,7 +345,7 @@ public class VideosServiceImpl { @@ -345,7 +345,7 @@ public class VideosServiceImpl {
345 */ 345 */
346 public int updateDianboAndShenhe(ShyVideos video,int dianboState) { 346 public int updateDianboAndShenhe(ShyVideos video,int dianboState) {
347 //修改点播云的视频状态 347 //修改点播云的视频状态
348 - JSONObject result = Pass.auditPass(video.getVideo_id(), dianboState, "", "", video.getCallback()); 348 + JSONObject result = Pass.auditPass(video.getVideo_id(), dianboState, video.getMsg(), video.getMsg(), video.getCallback());
349 Integer code = result.getInteger("code"); 349 Integer code = result.getInteger("code");
350 Integer shenheState=CommonConst.AUDIT_REFUSE; 350 Integer shenheState=CommonConst.AUDIT_REFUSE;
351 if (0 == code) { 351 if (0 == code) {
@@ -353,13 +353,14 @@ public class VideosServiceImpl { @@ -353,13 +353,14 @@ public class VideosServiceImpl {
353 shenheState=CommonConst.AUDIT_SUCCESS; 353 shenheState=CommonConst.AUDIT_SUCCESS;
354 } 354 }
355 //修改审核云的视频状态 355 //修改审核云的视频状态
356 - int i = videosService.updateVideo(video.getId(), null,video.getUpdater(), shenheState, result.getString("msg")); 356 + int i = videosService.updateVideo(video.getId(), null,video.getUpdater(), shenheState, video.getMsg());
357 if (i != 1) { 357 if (i != 1) {
358 logger.error("点播视频更改失败,activity_id:{}", video.getVideo_id()); 358 logger.error("点播视频更改失败,activity_id:{}", video.getVideo_id());
359 } 359 }
360 return i; 360 return i;
361 } else { 361 } else {
362 - videosService.updateVideo(video.getId(), null,video.getUpdater(), CommonConst.AUDIT_CALLBACK_FAIL, result.getString("msg")); 362 + video.setMsg("点播视频回调失败,"+video.getMsg());
  363 + videosService.updateVideo(video.getId(), null,video.getUpdater(), CommonConst.AUDIT_CALLBACK_FAIL, video.getMsg());
363 logger.error("点播视频回调失败,activity_id:{},code:{},msg:{}", video.getVideo_id(), code, result.getString("msg")); 364 logger.error("点播视频回调失败,activity_id:{},code:{},msg:{}", video.getVideo_id(), code, result.getString("msg"));
364 } 365 }
365 366