From a5c3b8c7dce10b9474821105e412070e709faf6f Mon Sep 17 00:00:00 2001 From: xpnas Date: Thu, 25 Mar 2021 21:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B6=88=E6=81=AF=E9=80=9A?= =?UTF-8?q?=E9=81=93=E8=BE=93=E5=85=A5=E6=A1=86=E8=BE=93=E5=85=A5=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inotify/Sends/Products/EmailSendTemplate.cs | 12 ++++++------ Inotify/Sends/Products/TelegramBotSendTemplate.cs | 4 ++-- Inotify/Sends/Products/WeixiSendTemplate.cs | 2 +- Inotify/Sends/SendTaskManager.cs | 1 - 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Inotify/Sends/Products/EmailSendTemplate.cs b/Inotify/Sends/Products/EmailSendTemplate.cs index e3d47bb..150249e 100644 --- a/Inotify/Sends/Products/EmailSendTemplate.cs +++ b/Inotify/Sends/Products/EmailSendTemplate.cs @@ -15,22 +15,22 @@ namespace Inotify.Sends.Products [InputTypeAttribte(0, "FromName", "发件人", "管理员")] public string FromName { get; set; } - [InputTypeAttribte(0, "From", "发件地址", "abc@qq.com")] + [InputTypeAttribte(1, "From", "发件地址", "abc@qq.com")] public string From { get; set; } - [InputTypeAttribte(1, "Password", "发件密码", "123456")] + [InputTypeAttribte(2, "Password", "发件密码", "123456")] public string Password { get; set; } - [InputTypeAttribte(2, "Host", "SMTP地址", "smtp.qq.com")] + [InputTypeAttribte(3, "Host", "SMTP地址", "smtp.qq.com")] public string Host { get; set; } - [InputTypeAttribte(2, "Port", "SMTP端口", "587")] + [InputTypeAttribte(4, "Port", "SMTP端口", "587")] public int Port { get; set; } - [InputTypeAttribte(3, "EnableSSL", "SSL", "true|false")] + [InputTypeAttribte(5, "EnableSSL", "SSL", "true|false")] public bool EnableSSL { get; set; } - [InputTypeAttribte(4, "To", "收件箱", "abcd@qq.com")] + [InputTypeAttribte(6, "To", "收件箱", "abcd@qq.com")] public string To { get; set; } } diff --git a/Inotify/Sends/Products/TelegramBotSendTemplate.cs b/Inotify/Sends/Products/TelegramBotSendTemplate.cs index 9fc8c01..dbf7e14 100644 --- a/Inotify/Sends/Products/TelegramBotSendTemplate.cs +++ b/Inotify/Sends/Products/TelegramBotSendTemplate.cs @@ -13,10 +13,10 @@ namespace Inotify.Sends.Products public class TelegramBotAuth { - [InputTypeAttribte(1, "BotToken", "BotToken", "ID:Token")] + [InputTypeAttribte(0, "BotToken", "BotToken", "ID:Token")] public string BotToken { get; set; } - [InputTypeAttribte(2, "Chat_id", "ChatId", "ChatId")] + [InputTypeAttribte(1, "Chat_id", "ChatId", "ChatId")] public string Chat_id { get; set; } } diff --git a/Inotify/Sends/Products/WeixiSendTemplate.cs b/Inotify/Sends/Products/WeixiSendTemplate.cs index 58ec469..1d8ae79 100644 --- a/Inotify/Sends/Products/WeixiSendTemplate.cs +++ b/Inotify/Sends/Products/WeixiSendTemplate.cs @@ -22,7 +22,7 @@ namespace Inotify.Sends.Products [InputTypeAttribte(2, "AgentID", "应用ID", "AgentID")] public string AgentID { get; set; } - [InputTypeAttribte(2, "OpengId", "OpengId", "@all")] + [InputTypeAttribte(3, "OpengId", "OpengId", "@all")] public string OpengId { get; set; } } diff --git a/Inotify/Sends/SendTaskManager.cs b/Inotify/Sends/SendTaskManager.cs index 4623cb4..9609418 100644 --- a/Inotify/Sends/SendTaskManager.cs +++ b/Inotify/Sends/SendTaskManager.cs @@ -101,7 +101,6 @@ namespace Inotify.Sends { foreach (var thread in m_sendThreads) { - // m_messages.Add(new StopMessage()); thread.Interrupt(); } m_sendThreads.Clear();