Commit 32a5b6f988ab5f289f6750cf66f3a90a9d9c3bf6

Authored by 王言钊
1 parent 80c53134

优化代码中的数字替换成常量、修改人工审核方法名

src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
@@ -369,7 +369,7 @@ public class VideosServiceImpl { @@ -369,7 +369,7 @@ public class VideosServiceImpl {
369 if (type.toLowerCase().equals(CommonConst.PASS)) { 369 if (type.toLowerCase().equals(CommonConst.PASS)) {
370 shyVideos.setMsg(desc); 370 shyVideos.setMsg(desc);
371 //修改点播云视频状态 371 //修改点播云视频状态
372 - videosService.updateDianboAndShenhe(shyVideos, 3); 372 + videosService.updateDianboAndShenhe(shyVideos, CommonConst.AUDIT_SUCCESS);
373 } else if (type.toLowerCase().equals(CommonConst.REJECT)) { 373 } else if (type.toLowerCase().equals(CommonConst.REJECT)) {
374 //审核类型改为人工审核 374 //审核类型改为人工审核
375 shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_USER); 375 shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_USER);
@@ -490,7 +490,7 @@ public class VideosServiceImpl { @@ -490,7 +490,7 @@ public class VideosServiceImpl {
490 //机审 490 //机审
491 shenheType = CommonConst.AUDIT_TYPE_MACHANE; 491 shenheType = CommonConst.AUDIT_TYPE_MACHANE;
492 } 492 }
493 - if (renGongShenHe(shyVideo)) { 493 + if (manualReview(shyVideo)) {
494 //给审核变量 赋值人工审核 494 //给审核变量 赋值人工审核
495 shenheType = CommonConst.AUDIT_TYPE_USER; 495 shenheType = CommonConst.AUDIT_TYPE_USER;
496 } 496 }
@@ -510,7 +510,7 @@ public class VideosServiceImpl { @@ -510,7 +510,7 @@ public class VideosServiceImpl {
510 * @param shyVideo 510 * @param shyVideo
511 * @return 511 * @return
512 */ 512 */
513 - public boolean renGongShenHe(ShyVideos shyVideo) { 513 + public boolean manualReview(ShyVideos shyVideo) {
514 String[] list = {"41", "42", "43", "44", "45", "46", "47"}; 514 String[] list = {"41", "42", "43", "44", "45", "46", "47"};
515 List<String> asList = Arrays.asList(list); 515 List<String> asList = Arrays.asList(list);
516 if (asList.contains(shyVideo.getSource())) { 516 if (asList.contains(shyVideo.getSource())) {