Commit 76333d288acbc8da2c637809f54e639004cdeb30

Authored by 王言钊
1 parent cbb05486

修改判断条件

src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
... ... @@ -474,24 +474,24 @@ public class VideosServiceImpl {
474 474 //审核类型,1:免审,2:机审,3:人工审
475 475 Integer shenheType = CommonConst.AUDIT_TYPE_USER;
476 476 //如果当前sp是免审sp source有传空的时候 默认给0 //如果存在免审用户
477   - if (sites.contains(shyVideo.getSpid()) || shType.equals(CommonConst.AUDIT_TYPE_FREE) || CommonUtils.isNotNull(shyUserfree)) {
  477 + if (sites.contains(shyVideo.getSpid()) || shType.equals(CommonConst.AUDIT_TYPE_FREE) || (CommonUtils.isNotNull(shyUserfree) && CommonUtils.isNotNull(shyUserfree))) {
478 478 logger.info("进入已经免审渠道:{}", source);
479 479 //免审
480 480 shenheType = CommonConst.AUDIT_TYPE_FREE;
481   - } else {
  481 + } else {
482 482 //如果栏目是“目击者”
483 483 if (CommonUtils.isNotEmpty(shyVideo.getCategory()) && shyVideo.getCategory().equals(CommonConst.CATEGORY_WITNESS)) {
484 484 // 机审
485 485 shenheType = CommonConst.AUDIT_TYPE_MACHANE;
486 486 // 如果是人工审
487   - if (shType.equals(CommonConst.AUDIT_TYPE_USER)){
  487 + if (shType.equals(CommonConst.AUDIT_TYPE_USER)) {
488 488 shenheType = shType;
489 489 }
490 490 // 如果栏目是朋友圈
491 491 } else if (CommonUtils.isNotEmpty(shyVideo.getCategory()) && shyVideo.getCategory().equals(CommonConst.CATEGORY_MOMENT)) {
492 492 // 免审
493 493 shenheType = CommonConst.AUDIT_TYPE_FREE;
494   - }else {
  494 + } else {
495 495 shenheType = shType;
496 496 }
497 497 }
... ...