Commit 2d0649f2 authored by 刘基明's avatar 刘基明

评论屏蔽手机号

parent 0dc0fa44
...@@ -52,6 +52,7 @@ import com.tanpu.community.service.*; ...@@ -52,6 +52,7 @@ import com.tanpu.community.service.*;
import com.tanpu.community.service.base.ESService; import com.tanpu.community.service.base.ESService;
import com.tanpu.community.util.BizUtils; import com.tanpu.community.util.BizUtils;
import com.tanpu.community.util.ConvertUtil; import com.tanpu.community.util.ConvertUtil;
import com.tanpu.community.util.OtherUtil;
import com.tanpu.community.util.RankUtils; import com.tanpu.community.util.RankUtils;
import com.tanpu.community.util.TencentcloudUtils; import com.tanpu.community.util.TencentcloudUtils;
import com.tanpu.community.util.TimeUtils; import com.tanpu.community.util.TimeUtils;
...@@ -897,7 +898,7 @@ public class ThemeManager { ...@@ -897,7 +898,7 @@ public class ThemeManager {
//评论内容包装到ThemeContentQo里 //评论内容包装到ThemeContentQo里
ThemeContentQo commentContent = ThemeContentQo.builder() ThemeContentQo commentContent = ThemeContentQo.builder()
.type(RelTypeEnum.TEXT.type) .type(RelTypeEnum.TEXT.type)
.value(commentEntity.getContent()) .value(OtherUtil.blockPhoneAndEmail(commentEntity.getContent()))
.build(); .build();
......
...@@ -134,6 +134,7 @@ public class ConvertUtil { ...@@ -134,6 +134,7 @@ public class ConvertUtil {
public static CommentQo commentEntity2Qo(CommentEntity entity) { public static CommentQo commentEntity2Qo(CommentEntity entity) {
CommentQo qo = new CommentQo(); CommentQo qo = new CommentQo();
BeanUtils.copyProperties(entity, qo); BeanUtils.copyProperties(entity, qo);
qo.setContent(OtherUtil.blockPhoneAndEmail(entity.getContent()));
qo.setUpdateTime(TimeUtils.getTimestampOfDateTime(entity.getUpdateTime())); qo.setUpdateTime(TimeUtils.getTimestampOfDateTime(entity.getUpdateTime()));
return qo; return qo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment