Explorar o código

无限发表 计划推送时间修改

wangyunpeng hai 6 horas
pai
achega
8552f38970

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

@@ -817,7 +817,8 @@ public class CoreServiceImpl implements CoreService {
         gzhPushParam.setAccountId(planAccount.getAccountId());
         gzhPushParam.setAccountId(planAccount.getAccountId());
         gzhPushParam.setPushType(planAccount.getPushType());
         gzhPushParam.setPushType(planAccount.getPushType());
         gzhPushParam.setPushScheduleTimestamp(System.currentTimeMillis());
         gzhPushParam.setPushScheduleTimestamp(System.currentTimeMillis());
-        if (planAccount.getIsSpecialSetting() != 1 && StringUtils.isNotEmpty(planAccount.getPublishPushTime())) {
+        if (planAccount.getIsSpecialSetting() != 1 && StringUtils.isNotEmpty(planAccount.getPublishPushTime())
+                && !planAccount.getPushType().equals(PublishGzhPushTypeEnum.auto_publish.getVal())) {
             String dateTimeStr = TimeZoneUtil.todayYMD(TimeZoneUtil.Timezone.china) + " " + planAccount.getPublishPushTime();
             String dateTimeStr = TimeZoneUtil.todayYMD(TimeZoneUtil.Timezone.china) + " " + planAccount.getPublishPushTime();
             gzhPushParam.setPushScheduleTimestamp(TimeZoneUtil.getDateStrTimestamp(dateTimeStr, "yyyy-MM-dd HH:mm:ss", TimeZoneUtil.Timezone.china));
             gzhPushParam.setPushScheduleTimestamp(TimeZoneUtil.getDateStrTimestamp(dateTimeStr, "yyyy-MM-dd HH:mm:ss", TimeZoneUtil.Timezone.china));
         } else {
         } else {
@@ -1051,7 +1052,7 @@ public class CoreServiceImpl implements CoreService {
                     continue;
                     continue;
                 }
                 }
                 if (Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.auto_group_publish.getVal()) ||
                 if (Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.auto_group_publish.getVal()) ||
-                        Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.auto_publish.getVal())||
+                        Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.auto_publish.getVal()) ||
                         Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.batch_group_publish.getVal())) {
                         Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.batch_group_publish.getVal())) {
                     planAccountService.updateStatus(2, planAccountId);
                     planAccountService.updateStatus(2, planAccountId);
                 }
                 }