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,6 +3,7 @@ package com.cnlive.shenhe.job; | ||
| 3 | import com.cnlive.shenhe.entity.ShyVideos; | 3 | import com.cnlive.shenhe.entity.ShyVideos; |
| 4 | import com.cnlive.shenhe.serviceImpl.VideosServiceImpl; | 4 | import com.cnlive.shenhe.serviceImpl.VideosServiceImpl; |
| 5 | import com.cnlive.shenhe.utils.CommonConst; | 5 | import com.cnlive.shenhe.utils.CommonConst; |
| 6 | +import com.cnlive.shenhe.utils.CommonConstStates; | ||
| 6 | import org.slf4j.Logger; | 7 | import org.slf4j.Logger; |
| 7 | import org.slf4j.LoggerFactory; | 8 | import org.slf4j.LoggerFactory; |
| 8 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| @@ -38,7 +39,7 @@ public class VideosJob { | @@ -38,7 +39,7 @@ public class VideosJob { | ||
| 38 | logger.info("当前白名单通过的videos_id:" + video.getId()); | 39 | logger.info("当前白名单通过的videos_id:" + video.getId()); |
| 39 | video.setUpdater("白名单"); | 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,7 +370,7 @@ public class VideosServiceImpl { | ||
| 370 | if (type.toLowerCase().equals(CommonConst.PASS)) { | 370 | if (type.toLowerCase().equals(CommonConst.PASS)) { |
| 371 | shyVideos.setMsg(desc); | 371 | shyVideos.setMsg(desc); |
| 372 | //修改点播云视频状态 | 372 | //修改点播云视频状态 |
| 373 | - videosService.updateDianboAndShenhe(shyVideos, CommonConst.AUDIT_SUCCESS); | 373 | + videosService.updateDianboAndShenhe(shyVideos, CommonConstStates.TONGGUO); |
| 374 | } else if (type.toLowerCase().equals(CommonConst.REJECT)) { | 374 | } else if (type.toLowerCase().equals(CommonConst.REJECT)) { |
| 375 | //审核类型改为人工审核 | 375 | //审核类型改为人工审核 |
| 376 | shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_USER); | 376 | shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_USER); |
| @@ -414,7 +414,7 @@ public class VideosServiceImpl { | @@ -414,7 +414,7 @@ public class VideosServiceImpl { | ||
| 414 | String callback = video.getCallback(); | 414 | String callback = video.getCallback(); |
| 415 | if (callback.contains("bc.cnlive.com")) { | 415 | if (callback.contains("bc.cnlive.com")) { |
| 416 | if ("0".equals(errorCode)) { | 416 | if ("0".equals(errorCode)) { |
| 417 | - if (dianboState == CommonConst.AUDIT_SUCCESS) { | 417 | + if (dianboState == CommonConstStates.TONGGUO) { |
| 418 | shenheState = CommonConst.AUDIT_SUCCESS; | 418 | shenheState = CommonConst.AUDIT_SUCCESS; |
| 419 | } | 419 | } |
| 420 | //修改审核云的视频状态 | 420 | //修改审核云的视频状态 |
| @@ -430,7 +430,7 @@ public class VideosServiceImpl { | @@ -430,7 +430,7 @@ public class VideosServiceImpl { | ||
| 430 | } | 430 | } |
| 431 | } else { | 431 | } else { |
| 432 | if (0 == code) { | 432 | if (0 == code) { |
| 433 | - if (dianboState == CommonConst.AUDIT_SUCCESS) { | 433 | + if (dianboState == CommonConstStates.TONGGUO) { |
| 434 | shenheState = CommonConst.AUDIT_SUCCESS; | 434 | shenheState = CommonConst.AUDIT_SUCCESS; |
| 435 | } | 435 | } |
| 436 | //修改审核云的视频状态 | 436 | //修改审核云的视频状态 |
src/main/java/com/cnlive/shenhe/utils/CommonConstStates.java
| @@ -91,5 +91,12 @@ public class CommonConstStates { | @@ -91,5 +91,12 @@ public class CommonConstStates { | ||
| 91 | */ | 91 | */ |
| 92 | public static Integer WENBEN = 1; | 92 | public static Integer WENBEN = 1; |
| 93 | 93 | ||
| 94 | - | 94 | + /** |
| 95 | + * 审核状态:审核通过 | ||
| 96 | + */ | ||
| 97 | + public static Integer TONGGUO = 3; | ||
| 98 | + /** | ||
| 99 | + * 审核状态:审核拒绝 | ||
| 100 | + */ | ||
| 101 | + public static Integer JUJUE = 4; | ||
| 95 | } | 102 | } |