|
@@ -212,7 +212,6 @@ public class ArticleService {
|
|
|
if (times > 20) {
|
|
|
return result;
|
|
|
}
|
|
|
- // NOTE: channelContentId 为爬虫生成,不一定存在于AIGC系统中
|
|
|
CrawlerContent crawlerContent = aigcBaseMapper.getCrawlerContentByChannelContentId(channelContentId);
|
|
|
if (Objects.isNull(crawlerContent) || !StringUtils.hasText(crawlerContent.getGhId())) {
|
|
|
return result;
|
|
@@ -261,12 +260,14 @@ public class ArticleService {
|
|
|
long now = System.currentTimeMillis();
|
|
|
for (ArticlePoolPromotionSource task : tasks) {
|
|
|
// 溯源
|
|
|
- PublishAccount publishAccount = publishAccountRepository.getByGhId(task.getGhId());
|
|
|
+ Article article = articleRepository.getByWxSn(task.getWxSn());
|
|
|
+ PublishAccount publishAccount = publishAccountRepository.getByGhId(article.getGhId());
|
|
|
if (Objects.isNull(publishAccount)) {
|
|
|
continue;
|
|
|
}
|
|
|
- List<PublishContent> publishContentList = aigcBaseMapper.getNearestPublishContent(publishAccount.getId(), task.getPublishTimestamp(), 100);
|
|
|
- PublishContent publishContent = findPublishContent(publishContentList, task.getTitle(), task.getPublishTimestamp());
|
|
|
+ long publishTimestamp = article.getPublishTimestamp() > 0 ? article.getPublishTimestamp() * 1000 : article.getUpdateTime() * 1000;
|
|
|
+ List<PublishContent> publishContentList = aigcBaseMapper.getNearestPublishContent(publishAccount.getId(), publishTimestamp, 100);
|
|
|
+ PublishContent publishContent = findPublishContent(publishContentList, task.getTitle(), publishTimestamp);
|
|
|
if (Objects.isNull(publishContent)) {
|
|
|
continue;
|
|
|
}
|