feat: 拆分邮件通知选项,根据会员权益显示

- 翻译完成邮件通知(所有用户)
- 鮮件带附件发送(VIP专属,free用户显示需VIP)
- 会员到期提醒(仅VIP用户显示)
- 添加 notify_with_attachment 字段
- 更新各等级权益:email_notify/email_attachment
This commit is contained in:
2026-04-15 01:10:59 +08:00
parent 56709b1a65
commit 9a36b9245a
4 changed files with 53 additions and 8 deletions

View File

@@ -39,19 +39,19 @@ USER_LIMITS = {
"daily_translations": 10,
"max_pages": 50,
"max_file_size": 30 * 1024 * 1024, # 30MB
"features": ["basic_translate", "retranslate", "export_pdf", "history"],
"features": ["basic_translate", "retranslate", "export_pdf", "history", "email_notify"],
},
"vip_basic": { # 基础会员 (月付 ¥29)
"daily_translations": 50,
"max_pages": 100,
"max_file_size": 50 * 1024 * 1024,
"features": ["basic_translate", "compare_view", "retranslate", "history", "priority_queue", "export_pdf"],
"features": ["basic_translate", "compare_view", "retranslate", "history", "priority_queue", "export_pdf", "email_notify", "email_attachment"],
},
"vip_pro": { # 专业会员 (月付 ¥99)
"daily_translations": 200,
"max_pages": 500,
"max_file_size": 100 * 1024 * 1024,
"features": ["basic_translate", "compare_view", "retranslate", "history", "priority_queue", "export_pdf", "batch_translate", "custom_terms"],
"features": ["basic_translate", "compare_view", "retranslate", "history", "priority_queue", "export_pdf", "batch_translate", "custom_terms", "email_notify", "email_attachment"],
},
"vip_enterprise": { # 企业会员 (年付 ¥999)
"daily_translations": -1, # 无限制