Commit 9384abb9eff88a6f99c39e941b309470c8258b51
1 parent
c534a8a4
修改审核状态
Showing
3 changed files
with
13 additions
and
5 deletions
src/main/java/com/cnlive/shenhe/job/VideosJob.java
| ... | ... | @@ -3,6 +3,7 @@ package com.cnlive.shenhe.job; |
| 3 | 3 | import com.cnlive.shenhe.entity.ShyVideos; |
| 4 | 4 | import com.cnlive.shenhe.serviceImpl.VideosServiceImpl; |
| 5 | 5 | import com.cnlive.shenhe.utils.CommonConst; |
| 6 | +import com.cnlive.shenhe.utils.CommonConstStates; | |
| 6 | 7 | import org.slf4j.Logger; |
| 7 | 8 | import org.slf4j.LoggerFactory; |
| 8 | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| ... | ... | @@ -38,7 +39,7 @@ public class VideosJob { |
| 38 | 39 | logger.info("当前白名单通过的videos_id:" + video.getId()); |
| 39 | 40 | video.setUpdater("白名单"); |
| 40 | 41 | // 更新点播和审核的视频状态 |
| 41 | - videosService.updateDianboAndShenhe(video, CommonConst.AUDIT_SUCCESS); | |
| 42 | + videosService.updateDianboAndShenhe(video, CommonConstStates.TONGGUO); | |
| 42 | 43 | } |
| 43 | 44 | } |
| 44 | 45 | } | ... | ... |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| ... | ... | @@ -370,7 +370,7 @@ public class VideosServiceImpl { |
| 370 | 370 | if (type.toLowerCase().equals(CommonConst.PASS)) { |
| 371 | 371 | shyVideos.setMsg(desc); |
| 372 | 372 | //修改点播云视频状态 |
| 373 | - videosService.updateDianboAndShenhe(shyVideos, CommonConst.AUDIT_SUCCESS); | |
| 373 | + videosService.updateDianboAndShenhe(shyVideos, CommonConstStates.TONGGUO); | |
| 374 | 374 | } else if (type.toLowerCase().equals(CommonConst.REJECT)) { |
| 375 | 375 | //审核类型改为人工审核 |
| 376 | 376 | shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_USER); |
| ... | ... | @@ -414,7 +414,7 @@ public class VideosServiceImpl { |
| 414 | 414 | String callback = video.getCallback(); |
| 415 | 415 | if (callback.contains("bc.cnlive.com")) { |
| 416 | 416 | if ("0".equals(errorCode)) { |
| 417 | - if (dianboState == CommonConst.AUDIT_SUCCESS) { | |
| 417 | + if (dianboState == CommonConstStates.TONGGUO) { | |
| 418 | 418 | shenheState = CommonConst.AUDIT_SUCCESS; |
| 419 | 419 | } |
| 420 | 420 | //修改审核云的视频状态 |
| ... | ... | @@ -430,7 +430,7 @@ public class VideosServiceImpl { |
| 430 | 430 | } |
| 431 | 431 | } else { |
| 432 | 432 | if (0 == code) { |
| 433 | - if (dianboState == CommonConst.AUDIT_SUCCESS) { | |
| 433 | + if (dianboState == CommonConstStates.TONGGUO) { | |
| 434 | 434 | shenheState = CommonConst.AUDIT_SUCCESS; |
| 435 | 435 | } |
| 436 | 436 | //修改审核云的视频状态 | ... | ... |
src/main/java/com/cnlive/shenhe/utils/CommonConstStates.java