From 4c52b8c590b18e549a9842f552891e8aedd6257f Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Sun, 24 Apr 2022 13:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A7=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push_main-pushplus.py | 40 ---------------------------------------- push_main-server.py | 38 -------------------------------------- 2 files changed, 78 deletions(-) delete mode 100644 push_main-pushplus.py delete mode 100644 push_main-server.py diff --git a/push_main-pushplus.py b/push_main-pushplus.py deleted file mode 100644 index 8e13297..0000000 --- a/push_main-pushplus.py +++ /dev/null @@ -1,40 +0,0 @@ -import sys -import time -import random -import subprocess -from request import http - -SendKey = "" -send_Url = "http://www.pushplus.plus/send" - -python_Path = sys.executable - -run_ShellCommand = python_Path + " main_multi.py autorun" - -for i in range(2): - opt_id, opt_info = subprocess.getstatusoutput(run_ShellCommand) - if opt_id == 0: - break - time.sleep(random.randint(30, 70)) - -if opt_id != 0: - print("Error!") - http.post( - url=send_Url, - data={ - "token": SendKey, - "title": "「米游社-签到」Error!", - "content": opt_info.split()[-1] + "\nHello!推送相关的设置已修改,请注意更新!\n这里是运行相关日志:\r\n" + opt_info, - } - ) -else: - print("OK!") - http.post( - url=send_Url, - data={ - "token": SendKey, - "title": "「米游社-签到」OK!", - "content": opt_info.split()[-1] + "\nHello!推送相关的设置已修改,请注意更新!\n这里是运行相关日志:\r\n" + opt_info, - } - ) -exit(0) diff --git a/push_main-server.py b/push_main-server.py deleted file mode 100644 index 9ad95a2..0000000 --- a/push_main-server.py +++ /dev/null @@ -1,38 +0,0 @@ -import sys -import time -import random -import subprocess -from request import http - -SendKey = "" -send_Url = f"https://sctapi.ftqq.com/{SendKey}.send" - -python_Path = sys.executable - -run_ShellCommand = python_Path + " main_multi.py autorun" - -for i in range(2): - opt_id, opt_info = subprocess.getstatusoutput(run_ShellCommand) - if opt_id == 0: - break - time.sleep(random.randint(30, 70)) - -if opt_id != 0: - print("Error!") - http.post( - url=send_Url, - data={ - "title": "米游社脚本执行出错!", - "desp": "\nHello!推送相关的设置已修改,请注意更新!\n这里是运行相关日志:\r\n" + opt_info - } - ) -else: - http.post( - url=send_Url, - data={ - "title": "米游社脚本执行成功", - "desp": "\nHello!推送相关的设置已修改,请注意更新!\n这里是运行相关日志:\r\n" + opt_info - } - ) - print("OK!") -exit(0)