mirror of
https://gitee.com/liweiyi/ChestnutCMS.git
synced 2025-12-06 08:28:23 +08:00
误提交测试代码移除
This commit is contained in:
parent
429146a9e8
commit
58c8cea901
@ -91,7 +91,7 @@ public class CatalogPublishTask implements IPublishTask<CmsCatalog> {
|
||||
MapRecord<String, String, String> record = MapRecord.create(CMSPublishConfig.PublishStreamName, Map.of(
|
||||
"type", Type,
|
||||
"id", dataId
|
||||
)).withId(RecordId.of(Instant.now().toEpochMilli(), catalog.getCatalogId()));
|
||||
));
|
||||
redisTemplate.opsForStream().add(record);
|
||||
}
|
||||
|
||||
|
||||
@ -106,7 +106,7 @@ public class ContentPublishTask implements IPublishTask<CmsContent> {
|
||||
MapRecord<String, String, String> record = MapRecord.create(CMSPublishConfig.PublishStreamName, Map.of(
|
||||
"type", Type,
|
||||
"id", dataId
|
||||
)).withId(RecordId.of(Instant.now().toEpochMilli(), content.getContentId()));
|
||||
));
|
||||
redisTemplate.opsForStream().add(record);
|
||||
}
|
||||
|
||||
|
||||
@ -33,12 +33,10 @@ import com.chestnut.contentcore.util.TemplateUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.springframework.data.redis.connection.stream.MapRecord;
|
||||
import org.springframework.data.redis.connection.stream.RecordId;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.io.File;
|
||||
import java.time.Instant;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
@ -75,7 +73,7 @@ public class SitePublishTask implements IPublishTask<CmsSite> {
|
||||
MapRecord<String, String, String> record = MapRecord.create(CMSPublishConfig.PublishStreamName, Map.of(
|
||||
"type", Type,
|
||||
"id", dataId
|
||||
)).withId(RecordId.of(Instant.now().toEpochMilli(), site.getSiteId()));
|
||||
));
|
||||
redisTemplate.opsForStream().add(record);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user