feat(core): 初步完成新增用户单独通知功能

This commit is contained in:
2025-05-18 01:57:48 +08:00
parent c0f887ff9d
commit 0d904b229e
4 changed files with 381 additions and 3 deletions

View File

@@ -439,6 +439,20 @@ class MaaUserConfig(LQConfig):
"Data", "CustomInfrastPlanIndex", "0"
)
# 新增用户单独通知字段
self.Notify_Enable = ConfigItem("Notify_Enable", False, False)
self.Notify_IfSMTP = ConfigItem("Notify_IfSMTP", False, False)
self.Notify_SMTPServerAddress = ConfigItem("Notify_SMTPServerAddress", "", "")
self.Notify_AuthorizationCode = ConfigItem("Notify_AuthorizationCode", "", "")
self.Notify_FromAddress = ConfigItem("Notify_FromAddress", "", "")
self.Notify_ToAddress = ConfigItem("Notify_ToAddress", "", "")
self.Notify_IfServerChan = ConfigItem("Notify_IfServerChan", False, False)
self.Notify_ServerChanKey = ConfigItem("Notify_ServerChanKey", "", "")
self.Notify_ServerChanChannel = ConfigItem("Notify_ServerChanChannel", "", "")
self.Notify_ServerChanTag = ConfigItem("Notify_ServerChanTag", "", "")
self.Notify_IfCompanyWebHookBot = ConfigItem("Notify_IfCompanyWebHookBot", False, False)
self.Notify_CompanyWebHookBotUrl = ConfigItem("Notify_CompanyWebHookBotUrl", "", "")
class MaaPlanConfig(LQConfig):
"""MAA计划表配置"""