Commit d19f2736bb39d12514d47ce05562e072204c5879
1 parent
aa437cf0
修改失败的消息
Showing
1 changed file
with
4 additions
and
3 deletions
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| ... | ... | @@ -345,7 +345,7 @@ public class VideosServiceImpl { |
| 345 | 345 | */ |
| 346 | 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 | 349 | Integer code = result.getInteger("code"); |
| 350 | 350 | Integer shenheState=CommonConst.AUDIT_REFUSE; |
| 351 | 351 | if (0 == code) { |
| ... | ... | @@ -353,13 +353,14 @@ public class VideosServiceImpl { |
| 353 | 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 | 357 | if (i != 1) { |
| 358 | 358 | logger.error("点播视频更改失败,activity_id:{}", video.getVideo_id()); |
| 359 | 359 | } |
| 360 | 360 | return i; |
| 361 | 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 | 364 | logger.error("点播视频回调失败,activity_id:{},code:{},msg:{}", video.getVideo_id(), code, result.getString("msg")); |
| 364 | 365 | } |
| 365 | 366 | ... | ... |