Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Iuleoo committed Feb 5, 2024
1 parent 58090f5 commit 6edb27e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
13 changes: 13 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@

![push](images/pushplush.png)

## TODO

- [X] 获取 Token、ID
- [X] 获取 打卡地址
- [X] 支持 MYSQL
- [X] 上下班打卡
- [ ] 月报、周报功能
- [ ] 补卡
- [X] 多用户功能
- [ ] PostgreSQL/SQLite
- [ ] WEB UI 界面
- [ ] 企业微信、钉钉、Telegram、QQ等消息平台

## 依赖安装

版本推荐:
Expand Down
21 changes: 1 addition & 20 deletions src/punchClock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 6edb27e

Please sign in to comment.