From 529074cee75d14627a5f7c65294bd3352d9460ef Mon Sep 17 00:00:00 2001 From: judy Date: Mon, 23 Aug 2021 12:26:22 +0800 Subject: [PATCH 1/4] =?UTF-8?q?[add]=E8=8E=B7=E5=8F=96=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system_info.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 system_info.py diff --git a/system_info.py b/system_info.py new file mode 100644 index 0000000..2d7455f --- /dev/null +++ b/system_info.py @@ -0,0 +1,23 @@ +import platform +import miuitask +from urllib.request import getproxies + + +def show_info(tip, info): + return "{}: {}".format(tip, info) + + +def system_info(): + miuitask.wLog(show_info("系统及版本信息", platform.platform())) + miuitask.wLog(show_info('系统版本号', platform.version())) + miuitask.wLog(show_info('系统名称', platform.system())) + miuitask.wLog(show_info('系统位数', platform.architecture())) + miuitask.wLog(show_info('计算机类型', platform.machine())) + miuitask.wLog(show_info('处理器类型', platform.processor())) + miuitask.wLog(show_info('Python版本', str(platform.python_version()) + ' ' + str(platform.python_build()))) + if getproxies(): + miuitask.wLog(show_info('系统代理', getproxies())) + + +if __name__ == '__main__': + system_info() From d29511ec6ec7030bfb20b0b60bcb5d775c11c874 Mon Sep 17 00:00:00 2001 From: judy Date: Mon, 23 Aug 2021 12:26:54 +0800 Subject: [PATCH 2/4] =?UTF-8?q?[add]=E8=BE=93=E5=87=BA=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=88=B0=E6=8E=A7=E5=88=B6=E5=8F=B0=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BFdebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miuitask.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miuitask.py b/miuitask.py index 9b0297a..e627e27 100644 --- a/miuitask.py +++ b/miuitask.py @@ -2,6 +2,7 @@ import requests import time import json +import system_info from urllib import request from http import cookiejar @@ -387,6 +388,9 @@ def milogin(): if __name__ == "__main__": wLog("miuitask v1.2.1") + wLog('----------系统信息-开始-------------') + system_info.system_info() + wLog('----------系统信息-结束-------------') wLog("项目地址:https://github.com/0-8-4/miui-auto-tasks") wLog("欢迎star,感谢東雲研究所中的大佬") wLog("开始登录小米账号") From 802e46cfbb9f8bcab22a9d7da64acc59e634773a Mon Sep 17 00:00:00 2001 From: judy Date: Mon, 23 Aug 2021 12:28:10 +0800 Subject: [PATCH 3/4] =?UTF-8?q?[IMP]=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miuitask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miuitask.py b/miuitask.py index e627e27..eaa1f74 100644 --- a/miuitask.py +++ b/miuitask.py @@ -401,7 +401,7 @@ if __name__ == "__main__": # vipsignin() # 警告:根据小米社区规则,非正常渠道签到可能会导致账户封禁 # 本脚本虽是模拟您的操作向社区发送请求,但仍不能保证绝对安全 - # 如果您愿意自行承担一切风险,删去Line396和397的“#”即可 + # 如果您愿意自行承担一切风险,删去Line400和401"#"即可 startTask("10106263") wLog("正在完成BUG反馈任务") newAnnounce("7") From 36641f0a8e17bf29df7149356883e4a7e250bb83 Mon Sep 17 00:00:00 2001 From: judy Date: Mon, 23 Aug 2021 12:31:57 +0800 Subject: [PATCH 4/4] =?UTF-8?q?[IMP]=E4=BF=AE=E6=94=B9Readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2dc187b..d4cfb27 100644 --- a/README.md +++ b/README.md @@ -85,20 +85,24 @@ 如果你在使用过程中发现任何问题,可以 [提交 issue](https://github.com/0-8-4/miui-auto-tasks/issues/new) 或自行 fork 修改后提交 pull request。 -如果你要提交 pull request,请确保你的代码风格和项目已有的代码保持一致,遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008/),变量命名清晰,有适当的注释。 +如果你要提交 pull request,请确保你的代码风格和项目已有的代码保持一致,遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008) ,变量命名清晰,有适当的注释。 ========== #### **更新说明**: - V1.2.1 : + + v1.2.2 : +- 增加 输出系统信息到控制台 + + v1.2.1 : - 默认关闭“社区拔萝卜签到”功能 - 根据小米社区规则,非正常渠道签到**一经发现可能会导致账户封禁** - 如您愿意承担一切可能的后果,可根据脚本 Line397 下方的说明开启功能 - V1.2.0 : + v1.2.0 : - 增加“社区拔萝卜签到”功能 - V1.1.0 : + v1.1.0 : - 增加领取延迟保证成功率 - 增加完成“发布1篇帖子”活跃分任务功能