Quellcode durchsuchen

长文发布报警群

wangyunpeng vor 1 Tag
Ursprung
Commit
7a8447afad

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

@@ -273,6 +273,10 @@ public class ContentServiceImpl implements ContentService {
             statusParam.setPublishContentId(publishContent.getPublishContentId());
             statusParam.setErrorMsg("小程序为空");
             aigcService.updateMatchMiniprogramStatus(statusParam);
+            MatchContentStatusParam matchContentStatusParam = new MatchContentStatusParam();
+            matchContentStatusParam.setProduceContentId(publishContent.getSourceId());
+            matchContentStatusParam.setStatus(NewMatchResultStatusEnum.FAIL.getStatusCode());
+            aigcService.updateMatchContentStatus(matchContentStatusParam);
             log.info("文章获取小程序为空 matchVideo={} planAccount={}", matchVideo, planAccount);
             matchService.notHasMiniVideos(publishContent.getSourceId());
             return new ArrayList<>();

+ 2 - 2
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/LarkRobotUtil.java

@@ -14,13 +14,13 @@ import java.security.NoSuchAlgorithmException;
 public class LarkRobotUtil {
 
 
-    private static final String URL = "https://open.feishu.cn/open-apis/bot/v2/hook/93787b70-33d3-42c1-beae-c09310c9b38b";
+    private static final String URL = "https://open.feishu.cn/open-apis/bot/v2/hook/fb880de4-c0f2-47e7-97de-7e577d936382";
 
     private static final HttpPoolClientUtil HTTP_POOL_CLIENT_UTIL_DEFAULT = HttpClientUtil.create(3000, 10000, 20, 100, 3, 3000);
 
 
     public static void sendMessage(String msg) {
-        sendMessage("text", "长文发布报警:" + msg);
+        sendMessage("text", msg);
     }
 
     public static void sendMessage(String type, String msg) {