소스 검색

修改发布时间判断

xueyiming 10 달 전
부모
커밋
8ade469db3
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

+ 2 - 3
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -287,8 +287,7 @@ public class CoreServiceImpl implements CoreService {
 
     public boolean checkPlanAccount(PlanAccount planAccount) {
         boolean isGzhGroupPushPlan = Objects.nonNull(planAccount.getPushType())
-                && (PublishGzhPushTypeEnum.auto_group_publish.getVal().equals(planAccount.getPushType())
-                || PublishGzhPushTypeEnum.batch_group_publish.getVal().equals(planAccount.getPushType()));
+                && PublishGzhPushTypeEnum.auto_group_publish.getVal().equals(planAccount.getPushType());
         boolean flag = true;
         // 固定日期
         if (planAccount.getPublishRate() == 1) {
@@ -300,7 +299,7 @@ public class CoreServiceImpl implements CoreService {
             }
         }
         // 指定时间
-        if (StringUtils.isNotEmpty(planAccount.getPublishPushTime())) {
+        if (isGzhGroupPushPlan && StringUtils.isNotEmpty(planAccount.getPublishPushTime())) {
             long pushTime = DateUtil.convertToTimestamp(planAccount.getPublishPushTime());
             long nowTime = new Date().getTime();
             // 当前时间距离目标时间超过30分钟