新增设置注册邮箱前缀最小位数
This commit is contained in:
@@ -12,6 +12,7 @@ import emailMsgTemplate from '../template/email-msg';
|
||||
import emailTextTemplate from '../template/email-text';
|
||||
import emailHtmlTemplate from '../template/email-html';
|
||||
import verifyUtils from '../utils/verify-utils';
|
||||
import domainUtils from "../utils/domain-uitls";
|
||||
|
||||
const telegramService = {
|
||||
|
||||
@@ -50,7 +51,7 @@ const telegramService = {
|
||||
|
||||
const jwtToken = await jwtUtils.generateToken(c, { emailId: email.emailId })
|
||||
|
||||
const webAppUrl = verifyUtils.isDomain(customDomain) ? `https://${customDomain}/api/telegram/getEmail/${jwtToken}` : 'https://www.cloudflare.com/404'
|
||||
const webAppUrl = customDomain ? `${domainUtils.toOssDomain(customDomain)}/api/telegram/getEmail/${jwtToken}` : 'https://www.cloudflare.com/404'
|
||||
|
||||
await Promise.all(tgChatIds.map(async chatId => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user