Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
2d0649f2
Commit
2d0649f2
authored
Nov 11, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论屏蔽手机号
parent
0dc0fa44
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+2
-1
ConvertUtil.java
...e/src/main/java/com/tanpu/community/util/ConvertUtil.java
+1
-0
No files found.
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
2d0649f2
...
...
@@ -52,6 +52,7 @@ import com.tanpu.community.service.*;
import
com.tanpu.community.service.base.ESService
;
import
com.tanpu.community.util.BizUtils
;
import
com.tanpu.community.util.ConvertUtil
;
import
com.tanpu.community.util.OtherUtil
;
import
com.tanpu.community.util.RankUtils
;
import
com.tanpu.community.util.TencentcloudUtils
;
import
com.tanpu.community.util.TimeUtils
;
...
...
@@ -897,7 +898,7 @@ public class ThemeManager {
//评论内容包装到ThemeContentQo里
ThemeContentQo
commentContent
=
ThemeContentQo
.
builder
()
.
type
(
RelTypeEnum
.
TEXT
.
type
)
.
value
(
commentEntity
.
getContent
(
))
.
value
(
OtherUtil
.
blockPhoneAndEmail
(
commentEntity
.
getContent
()
))
.
build
();
...
...
community-service/src/main/java/com/tanpu/community/util/ConvertUtil.java
View file @
2d0649f2
...
...
@@ -134,6 +134,7 @@ public class ConvertUtil {
public
static
CommentQo
commentEntity2Qo
(
CommentEntity
entity
)
{
CommentQo
qo
=
new
CommentQo
();
BeanUtils
.
copyProperties
(
entity
,
qo
);
qo
.
setContent
(
OtherUtil
.
blockPhoneAndEmail
(
entity
.
getContent
()));
qo
.
setUpdateTime
(
TimeUtils
.
getTimestampOfDateTime
(
entity
.
getUpdateTime
()));
return
qo
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment