新增注册邮箱名自定义字符过滤

This commit is contained in:
eoao
2025-11-16 12:52:37 +08:00
parent 025dc1fbdb
commit 0395992b5b
12 changed files with 79 additions and 25 deletions

View File

@@ -24,10 +24,19 @@ const init = {
await this.v2DB(c);
await this.v2_3DB(c);
await this.v2_4DB(c);
await this.v2_5DB(c);
await settingService.refresh(c);
return c.text(t('initSuccess'));
},
async v2_5DB(c) {
try {
await c.env.db.prepare(`ALTER TABLE setting ADD COLUMN email_prefix_filter text NOT NULL DEFAULT '';`).run();
} catch (e) {
console.error(e)
}
},
async v2_4DB(c) {
try {
await c.env.db.prepare(`
@@ -54,6 +63,7 @@ const init = {
} catch (e) {
console.error(e)
}
},
async v2_3DB(c) {