소스 검색

增加判空

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

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

@@ -596,11 +596,14 @@ public class CoreServiceImpl implements CoreService {
             } else {
                 gzhPushParam.setPushScheduleTimestamp(System.currentTimeMillis());
             }
-            gzhPushParam.setPushContentList(pushContentList);
+            if (CollectionUtils.isEmpty(pushContentList)) {
+                continue;
+            }
             if (Objects.equals(planAccount.getPushType(), PublishGzhPushTypeEnum.auto_group_publish.getVal())
                     && pushContentList.size() < planAccount.getPublishPreMinNum()) {
                 continue;
             }
+            gzhPushParam.setPushContentList(pushContentList);
             log.info("gzhPushParam={}", gzhPushParam);
             String pushId = aigcService.createPushTask(gzhPushParam);
             log.info("pushId = {}", pushId);