Browse Source

没有内容更新状态

xueyiming 3 weeks ago
parent
commit
72b47b500b

+ 6 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/ContentServiceImpl.java

@@ -280,6 +280,12 @@ public class ContentServiceImpl implements ContentService {
         List<VideoDetail> videoDetails = publishVideo(contentMiniVideos, matchVideo, publishContent);
         log.info("getPublishVideoDetail videoDetails={}", videoDetails);
         if (CollectionUtils.isEmpty(videoDetails)) {
+            MatchMiniprogramStatusParam statusParam = new MatchMiniprogramStatusParam();
+            statusParam.setStatus(MatchResultStatusEnum.FAIL.getStatusCode());
+            statusParam.setPublishContentId(publishContent.getPublishContentId());
+            statusParam.setErrorMsg("小程序为空");
+            aigcService.updateMatchMiniprogramStatus(statusParam);
+            matchService.notHasMiniVideos(publishContent.getSourceId());
             LarkRobotUtil.sendMessage("发布后小程序为空 matchVideo.getContentId=" + matchVideo.getContentId());
             return new ArrayList<>();
         }