From 5825ba65a7a3b8cffd3ee265f5aa376557fbb416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=9B?= Date: Fri, 23 Jul 2021 11:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=8B=E8=80=85=E8=90=A5=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- wzyd.py | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1d3940e..fae3f3c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ### 1拉取仓库 -ql repo https://github.com/yuxian158/check.git '' 'checksendNotify' +ql repo https://github.com/yuxian158/check.git '' '^checksendNotify' ### 2参数列表 diff --git a/wzyd.py b/wzyd.py index fd1405c..d8b4ab9 100644 --- a/wzyd.py +++ b/wzyd.py @@ -24,7 +24,7 @@ class WZYDCheckIn: return msg def main(self): - wzyd_data = self.check_item[0] + wzyd_data = self.check_item data = {k: v[0] for k, v in parse.parse_qs(wzyd_data).items()} try: user_id = data.get("userId", "") @@ -37,8 +37,9 @@ class WZYDCheckIn: if __name__ == "__main__": - if 'wzry' in os.environ: - print('王者营地签到开始') - text = WZYDCheckIn(check_item=os.environ).main() - localtime = time.asctime( time.localtime(time.time()) ) - send(f'当前时间{localtime}\n结果:{text}') + if 'wzyd' in os.environ: + print('王者营地签到开始') + text = WZYDCheckIn(check_item=os.environ).main() + localtime = time.asctime(time.localtime(time.time())) + send(f'当前时间{localtime}\n结果:{text}') + else:print('未找到变量请填入') \ No newline at end of file