diff --git a/src/server/function/twikoo/index.js b/src/server/function/twikoo/index.js index bcdfb0ce5..ef00d7189 100644 --- a/src/server/function/twikoo/index.js +++ b/src/server/function/twikoo/index.js @@ -643,7 +643,7 @@ async function parse (comment) { } if (isQQ(comment.mail)) { commentDo.mail = addQQMailSuffix(comment.mail) - commentDo.mailMd5 = md5(normalizeMail(commentDo.mail)) + commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail)) commentDo.avatar = await getQQAvatar(comment.mail) } return commentDo diff --git a/src/server/self-hosted/index.js b/src/server/self-hosted/index.js index 2ae901204..ad41ffa1d 100644 --- a/src/server/self-hosted/index.js +++ b/src/server/self-hosted/index.js @@ -681,7 +681,7 @@ async function parse (comment, request) { } if (isQQ(comment.mail)) { commentDo.mail = addQQMailSuffix(comment.mail) - commentDo.mailMd5 = md5(normalizeMail(commentDo.mail)) + commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail)) commentDo.avatar = await getQQAvatar(comment.mail) } return commentDo diff --git a/src/server/self-hosted/mongo.js b/src/server/self-hosted/mongo.js index f9f5a6638..157826862 100644 --- a/src/server/self-hosted/mongo.js +++ b/src/server/self-hosted/mongo.js @@ -660,7 +660,7 @@ async function parse (comment, request) { } if (isQQ(comment.mail)) { commentDo.mail = addQQMailSuffix(comment.mail) - commentDo.mailMd5 = md5(normalizeMail(commentDo.mail)) + commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail)) commentDo.avatar = await getQQAvatar(comment.mail) } return commentDo diff --git a/src/server/vercel/api/index.js b/src/server/vercel/api/index.js index ce5796bdd..5d64e8f7f 100644 --- a/src/server/vercel/api/index.js +++ b/src/server/vercel/api/index.js @@ -684,7 +684,7 @@ async function parse (comment, request) { } if (isQQ(comment.mail)) { commentDo.mail = addQQMailSuffix(comment.mail) - commentDo.mailMd5 = md5(normalizeMail(commentDo.mail)) + commentDo.mailMd5 = hashMethod(normalizeMail(commentDo.mail)) commentDo.avatar = await getQQAvatar(comment.mail) } return commentDo