diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentLikeCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentLikeCmdExe.java index 35982b71..333790e1 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentLikeCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentLikeCmdExe.java @@ -13,6 +13,7 @@ import com.red.circle.other.infra.database.rds.entity.dynamic.DynamicMessage; import com.red.circle.other.infra.database.rds.service.dynamic.DynamicCommentLikeService; import com.red.circle.other.infra.database.rds.service.dynamic.DynamicContentService; import com.red.circle.other.infra.database.rds.service.dynamic.DynamicMessageService; +import com.red.circle.other.infra.database.rds.service.dynamic.DynamicPictureService; import com.red.circle.other.inner.asserts.DynamicErrorCode; import com.red.circle.tool.core.date.TimestampUtils; import com.red.circle.tool.core.num.NumUtils; @@ -39,6 +40,7 @@ public class DynamicCommentLikeCmdExe { private final DynamicPopularService dynamicPopularService; private final DynamicCommentLikeService dynamicCommentLikeService; private final DynamicMessageService dynamicMessageService; + private final DynamicPictureService dynamicPictureService; public Long execute(DynamicLikeCmd cmd) { @@ -131,6 +133,7 @@ public class DynamicCommentLikeCmdExe { message.setId(IdWorkerUtils.getId()); message.setDynamicContentId(cmd.getDynamicId()); message.setDynamicCommentId(cmd.getCommentId()); + message.setContent(dynamicPictureService.getFirstNormalPic(cmd.getDynamicId())); message.setType(type.name()); message.setToUserId(cmd.getToUserId()); message.setCreateTime(TimestampUtils.now());