修改文档和版本号
This commit is contained in:
@@ -6,7 +6,7 @@ const en = {
|
||||
notEmail: 'Invalid email',
|
||||
notExistDomain: 'Email domain does not exist',
|
||||
isDelAccount: 'This Email has been deleted',
|
||||
isRegAccount: 'This Email is already signed up',
|
||||
isRegAccount: 'This Email is already registered',
|
||||
accountLimit: 'Account limit reached',
|
||||
delMyAccount: 'Cannot delete your own account',
|
||||
noUserAccount: 'This email does not belong to the current user',
|
||||
@@ -50,9 +50,10 @@ const en = {
|
||||
starNotExistEmail: 'Starred email does not exist',
|
||||
emptyBotToken: 'Verification token cannot be empty',
|
||||
botVerifyFail: 'Bot verification failed, please try again',
|
||||
authExpired: 'Authentication expired, please log in again',
|
||||
authExpired: 'Authentication has expired. Please sign in again',
|
||||
unauthorized: 'Unauthorized',
|
||||
bannedSend: 'You are banned from sending emails',
|
||||
initSuccess: 'Successfully initialized',
|
||||
perms: {
|
||||
"邮件": "Email",
|
||||
"邮件发送": "Send email",
|
||||
|
||||
@@ -53,6 +53,7 @@ const zh = {
|
||||
authExpired: '身份认证失效,请重新登录',
|
||||
unauthorized: '权限不足',
|
||||
bannedSend: '你已被禁止发送邮件',
|
||||
initSuccess: 'Successfully initialized',
|
||||
perms: {
|
||||
"邮件": "邮件",
|
||||
"邮件发送": "邮件发送",
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import settingService from '../service/setting-service';
|
||||
import emailUtils from '../utils/email-utils';
|
||||
import {emailConst} from "../const/entity-const";
|
||||
import { t } from '../i18n/i18n'
|
||||
const init = {
|
||||
async init(c) {
|
||||
|
||||
const secret = c.req.param('secret');
|
||||
|
||||
if (secret !== c.env.jwt_secret) {
|
||||
return c.text('secret不匹配');
|
||||
return c.text(t('initSuccess'));
|
||||
}
|
||||
|
||||
await this.intDB(c);
|
||||
|
||||
Reference in New Issue
Block a user