浏览代码

增加服务号分组发送

xueyiming 1 月之前
父节点
当前提交
4d3840b8b3

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

@@ -694,11 +694,11 @@ public class CoreServiceImpl implements CoreService {
                 return;
             }
             log.info("gzhPushParam={}", gzhPushParam);
-//            String pushId = aigcService.createPushTask(gzhPushParam);
-//            log.info("pushId = {}", pushId);
-//            if (StringUtils.isNotEmpty(pushId)) {
-//                publicContentService.updatePublishContentPushId(sendIds, pushId);
-//            }
+            String pushId = aigcService.createPushTask(gzhPushParam);
+            log.info("pushId = {}", pushId);
+            if (StringUtils.isNotEmpty(pushId)) {
+                publicContentService.updatePublishContentPushId(sendIds, pushId);
+            }
         }
 
     }
@@ -806,10 +806,9 @@ public class CoreServiceImpl implements CoreService {
             createBatchGroupItemParam.setOpenIds(entry.getValue());
             createBatchGroupItemParams.add(createBatchGroupItemParam);
             gzhPushParam.setBatchGroupItems(createBatchGroupItemParams);
-//            log.info("gzhPushParam={}", gzhPushParam);
-//            String pushId = aigcService.createBatchGroupPushTask(gzhPushParam);
-//            log.info("pushId = {}", pushId);
-            String pushId = "test";
+            log.info("gzhPushParam={}", gzhPushParam);
+            String pushId = aigcService.createBatchGroupPushTask(gzhPushParam);
+            log.info("pushId = {}", pushId);
             List<String> contentIds = new ArrayList<>();
             for (PublishContent publishContent : publishContentList) {
                 PublishContent publishContent1 = new PublishContent();