From 571a825664137d240ed0af8b15a599721cdd953b Mon Sep 17 00:00:00 2001 From: yhy <31311038+yhy0@users.noreply.github.com> Date: Tue, 19 Jul 2022 17:04:20 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=A4=9A=E4=B8=AA=E9=80=9A=E9=81=93?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- github_cve_monitor.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/github_cve_monitor.py b/github_cve_monitor.py index 7776e04..472b442 100644 --- a/github_cve_monitor.py +++ b/github_cve_monitor.py @@ -357,11 +357,11 @@ def send_body(url,query_pushed_at,query_tag_name): body = "工具名称:" + tools_name + "\r\n" + "工具地址:" + download_url + "\r\n" + "工具更新日志:" + "\r\n" + update_log if load_config()[0] == "dingding": dingding(text, body,load_config()[2],load_config()[3]) - elif load_config()[0] == "server": + if load_config()[0] == "server": server(text, body,load_config()[2]) - elif load_config()[0] == "pushplus": + if load_config()[0] == "pushplus": pushplus(text, body,load_config()[2]) - elif load_config()[0] == "tgbot": + if load_config()[0] == "tgbot": tgbot(text,body,load_config()[2],load_config()[3]) conn = sqlite3.connect('data.db') cur = conn.cursor() @@ -386,13 +386,13 @@ def send_body(url,query_pushed_at,query_tag_name): body = "工具名称:" + tools_name + "\r\n" + "更新详情地址:" + download_url + "\r\n" + "commit更新日志:" + "\r\n" + update_log if load_config()[0] == "dingding": dingding(text, body,load_config()[2],load_config()[3]) - elif load_config()[0] == "feishu": + if load_config()[0] == "feishu": feishu(text,body,load_config()[2]) - elif load_config()[0] == "server": + if load_config()[0] == "server": server(text, body,load_config()[2]) - elif load_config()[0] == "pushplus": + if load_config()[0] == "pushplus": pushplus(text, body,load_config()[2]) - elif load_config()[0] == "tgbot": + if load_config()[0] == "tgbot": tgbot(text,body,load_config()[2],load_config()[3]) conn = sqlite3.connect('data.db') cur = conn.cursor() @@ -414,13 +414,13 @@ def send_body(url,query_pushed_at,query_tag_name): body = "工具名称:" + tools_name + "\r\n" + "工具地址:" + download_url + "\r\n" + "commit更新日志:" + "\r\n" + update_log if load_config()[0] == "dingding": dingding(text, body, load_config()[2], load_config()[3]) - elif load_config()[0] == "feishu": + if load_config()[0] == "feishu": feishu(text,body,load_config[2]) - elif load_config()[0] == "server": + if load_config()[0] == "server": server(text, body, load_config()[2]) - elif load_config()[0] == "pushplus": + if load_config()[0] == "pushplus": pushplus(text, body,load_config()[2]) - elif load_config()[0] == "tgbot": + if load_config()[0] == "tgbot": tgbot(text, body, load_config()[2], load_config()[3]) conn = sqlite3.connect('data.db') cur = conn.cursor() @@ -552,16 +552,16 @@ def sendNews(data): if load_config()[0] == "dingding": dingding(text, body, load_config()[2], load_config()[3]) print("钉钉 发送 CVE 成功") - elif load_config()[0] == "feishu": + if load_config()[0] == "feishu": feishu(text, body, load_config()[2]) print("飞书 发送 CVE 成功") - elif load_config()[0] == "server": + if load_config()[0] == "server": server(text, body, load_config()[2]) print("server酱 发送 CVE 成功") - elif load_config()[0] == "pushplus": + if load_config()[0] == "pushplus": pushplus(text, body, load_config()[2]) print("pushplus 发送 CVE 成功") - elif load_config()[0] == "tgbot": + if load_config()[0] == "tgbot": tgbot(text, body, load_config()[2], load_config()[3]) print("tgbot 发送 CVE 成功") except IndexError: @@ -581,16 +581,16 @@ def sendKeywordNews(keyword, data): if load_config()[0] == "dingding": dingding(text, body, load_config()[2], load_config()[3]) print("钉钉 发送 CVE 成功") - elif load_config()[0] == "feishu": + if load_config()[0] == "feishu": feishu(text, body, load_config()[2]) print("飞书 发送 CVE 成功") - elif load_config()[0] == "server": + if load_config()[0] == "server": server(text, body, load_config()[2]) print("server酱 发送 CVE 成功") - elif load_config()[0] == "pushplus": + if load_config()[0] == "pushplus": pushplus(text, body, load_config()[2]) print("pushplus 发送 CVE 成功") - elif load_config()[0] == "tgbot": + if load_config()[0] == "tgbot": tgbot(text, body, load_config()[2], load_config()[3]) print("tgbot 发送 CVE 成功") except IndexError: