Skip to content

Commit

Permalink
Update CommentPublicQueryServiceImpl.java
Browse files Browse the repository at this point in the history
增加邮件进行小写转换
  • Loading branch information
cryptochecktool authored Dec 2, 2024
1 parent c576f00 commit 04e9a31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private Mono<? extends CommentVo> filterCommentSensitiveData(CommentVo commentVo
var email = owner.getEmail();
if (StringUtils.isNotBlank(email)) {
var emailHash = Hashing.sha256()
.hashString(email, java.nio.charset.StandardCharsets.UTF_8)
.hashString(email.toLowerCase(), java.nio.charset.StandardCharsets.UTF_8)
.toString();
if (specOwner.getAnnotations() == null) {
specOwner.setAnnotations(new HashMap<>(2));
Expand Down Expand Up @@ -228,7 +228,7 @@ private Mono<? extends ReplyVo> filterReplySensitiveData(ReplyVo replyVo) {
var email = owner.getEmail();
if (StringUtils.isNotBlank(email)) {
var emailHash = Hashing.sha256()
.hashString(email, java.nio.charset.StandardCharsets.UTF_8)
.hashString(email.toLowerCase(), java.nio.charset.StandardCharsets.UTF_8)
.toString();
if (specOwner.getAnnotations() == null) {
specOwner.setAnnotations(new HashMap<>(2));
Expand Down

0 comments on commit 04e9a31

Please sign in to comment.