From 6edb27ed90b9d4ab365330fe5010fae80e9cafa3 Mon Sep 17 00:00:00 2001 From: Iuleoo Date: Mon, 5 Feb 2024 17:03:15 +0800 Subject: [PATCH] TODO --- README.MD | 13 +++++++++++++ src/punchClock.py | 21 +-------------------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/README.MD b/README.MD index b0edba4..95a1f77 100644 --- a/README.MD +++ b/README.MD @@ -8,6 +8,19 @@ ![push](images/pushplush.png) +## TODO + +- [X] 获取 Token、ID +- [X] 获取 打卡地址 +- [X] 支持 MYSQL +- [X] 上下班打卡 +- [ ] 月报、周报功能 +- [ ] 补卡 +- [X] 多用户功能 +- [ ] PostgreSQL/SQLite +- [ ] WEB UI 界面 +- [ ] 企业微信、钉钉、Telegram、QQ等消息平台 + ## 依赖安装 版本推荐: diff --git a/src/punchClock.py b/src/punchClock.py index 2a5123a..33f0de9 100644 --- a/src/punchClock.py +++ b/src/punchClock.py @@ -97,26 +97,7 @@ titles = "{},{}".format(user_name, code_ststus) contents = "打卡状态:{}\n打卡地址:{}\n服务器时间戳:{}".format(msg, address_lite, timestamp_str) -# pushplus 一对一推送 - -# url = "https://www.pushplus.plus/send" - -# payload = json.dumps({ -# "token": "87cdcff73305443c9eb690fe2169fa31", -# "title": titles, -# "content": contents, -# "template": "markdown" -# }) -# headers = { -# 'Content-Type': 'application/json' -# } - -# response = requests.request("POST", url, headers=headers, data=payload) - -# print(response.text) - - -# pushplus 一对多推送 +# pushplus 一对多推送,如需一对一删除 topic 参数即可 url = "https://www.pushplus.plus/send"