wangyunpeng 2 mesiacov pred
rodič
commit
33730687c9

+ 4 - 4
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformPlanServiceImpl.java

@@ -140,11 +140,9 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
         updateGhDetail(account, videoIds);
         // 更新cgi_reply_bucket_data
         updateCgiReplyBucketData(account.getGhId(), param.getVideoList());
-        // 调用aigc创建发布计划
-        String externalId = aigcApiService.createPublishPlan(account.getExternalId(), account.getName());
-        // 调用aigc重新拉取视频
-        aigcApiService.refreshGzhAutoReplyMsgData(account.getGhId());
         if (Objects.isNull(param.getId())) {
+            // 调用aigc创建发布计划
+            String externalId = aigcApiService.createPublishPlan(account.getExternalId(), account.getName());
             gzhPlan.setExternalId(externalId);
             gzhPlan.setCreateAccountId(loginAccount.getId());
             gzhPlan.setCreateTimestamp(now);
@@ -155,6 +153,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
         }
         // 保存视频内容
         saveGzhPlanVideo(param, videoIds, gzhPlan.getId(), loginAccount.getId());
+        // 调用aigc重新拉取视频
+        aigcApiService.refreshGzhAutoReplyMsgData(account.getGhId());
     }
 
     private void updateCgiReplyBucketData(String ghId, List<VideoContentItemVO> videoList) {