|
@@ -2,6 +2,7 @@ package com.tzld.longarticle.recommend.server.service.recall;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.tzld.longarticle.recommend.server.common.ThreadPoolFactory;
|
|
|
+import com.tzld.longarticle.recommend.server.common.enums.FeishuRobotIdEnum;
|
|
|
import com.tzld.longarticle.recommend.server.mapper.crawler.CrawlerBaseMapper;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.Content;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.ContentHisPublishArticle;
|
|
@@ -141,7 +142,8 @@ public class RecallService implements ApplicationContextAware {
|
|
|
private List<Content> getAllContent(RecallParam param) {
|
|
|
List<Content> content = aigcRemoteService.getAllContent(param);
|
|
|
if (CollectionUtils.isEmpty(content)) {
|
|
|
- FeishuMessageSender.sendWebHookMessage("07026a9f-43f5-448b-ba40-a8d71bd6e634", "内容召回失败\n"
|
|
|
+ FeishuMessageSender.sendWebHookMessage(FeishuRobotIdEnum.recommend.getRobotId(),
|
|
|
+ "内容召回失败\n"
|
|
|
+ "ghId: " + param.getGhId() + "\n"
|
|
|
+ "账号名称: " + param.getAccountName());
|
|
|
return content;
|
|
@@ -298,7 +300,8 @@ public class RecallService implements ApplicationContextAware {
|
|
|
avgViewCount = Optional.ofNullable(indexMap.get(hisArticle.getItemIndex().toString()).getReadAvg())
|
|
|
.orElse(0.0).intValue();
|
|
|
} else {
|
|
|
- FeishuMessageSender.sendWebHookMessage("07026a9f-43f5-448b-ba40-a8d71bd6e634", "历史表现阅读均值获取失败\n"
|
|
|
+ FeishuMessageSender.sendWebHookMessage(FeishuRobotIdEnum.recommend.getRobotId(),
|
|
|
+ "历史表现阅读均值获取失败\n"
|
|
|
+ "ghId: " + hisArticle.getGhId() + "\n"
|
|
|
+ "账号名称: " + hisArticle.getAccountName() + "\n"
|
|
|
+ "日期: " + hisPublishDate + "\n"
|
|
@@ -356,7 +359,8 @@ public class RecallService implements ApplicationContextAware {
|
|
|
if (CollectionUtils.isEmpty(article.getArticleDetailInfoList())) {
|
|
|
// 仅判断7.12以后发布文章
|
|
|
if (article.getUpdateTime() > 1720713600 && contentHisFeishuEnable) {
|
|
|
- FeishuMessageSender.sendWebHookMessage("07026a9f-43f5-448b-ba40-a8d71bd6e634", "历史表现裂变特征获取失败\n"
|
|
|
+ FeishuMessageSender.sendWebHookMessage(FeishuRobotIdEnum.recommend.getRobotId(),
|
|
|
+ "历史表现裂变特征获取失败\n"
|
|
|
+ "ghId: " + article.getGhId() + "\n"
|
|
|
+ "账号名称: " + article.getAccountName() + "\n"
|
|
|
+ "位置: " + article.getItemIndex() + "\n"
|