Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus-Ja committed Feb 3, 2021
0 parents commit 106871c
Show file tree
Hide file tree
Showing 48 changed files with 1,518 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 17wanxiaoCheckin

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 22 * * *

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Pip
run: pip3 install requests pycryptodome

- name: HealthyCheckIn
run: python3 index.py
env:
USERNAME: ${{secrets.USERNAME}}
PASSWORD: ${{secrets.PASSWORD}}
DEVICEID: ${{secrets.DEVICEID}}
SCKEY: ${{secrets.SCKEY}}
KEY: ${{secrets.KEY}}
QQ_NUM: ${{secrets.QQ_NUM}}
SEND_EMAIL: ${{secrets.SEND_EMAIL}}
SEND_PWD: ${{secrets.SEND_PWD}}
RECEIVE_EMAIL: ${{secrets.RECEIVE_EMAIL}}
73 changes: 73 additions & 0 deletions 17wanxiaoCheckin-SCF.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 🌈17wanxiaoCheckin-SCF

## 前言

由于 GitHub Actions 暂无法与完美校园交换密钥,可能完美校园把 GitHub Actions 的 IP 给 ban 了(猜测),暂时给出一个腾讯云函数版的解决方案,其余方案还有:服务器、[coding](https://blog.imyan.ren/posts/eb6032e9/)、手机(Tasker),以及其他可自动化运行python脚本的办法皆可!

## 前提

1. 已有腾讯云账号(没有,可以注册)
2. 腾讯云已实名(觉得实名有困难,不建议用)

## 使用方法

### 1、进入控制台

![进入控制台.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/进入控制台.png)

### 2、进入云函数

![进入云函数.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/搜索云函数.png)

### 3、新建云函数

![新建云函数.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/选择地区.png)

### 4、上传代码

在此下载 ,https://lingsiki.lanzous.com/b0ekc7p9i 密码:7dwe

同时请下载,RegisterDeviceID.zip 下来,后续获取 ID 需要。如若软件打不开,可自行下载模拟器,短信登陆完美校园之后,在模拟器设置中复制 IMEI(即为 DEVICEID 字段)

![上传代码.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/新建函数.png)

### 5、触发器配置

配置时间可具体参考,它下面的 [链接](https://cloud.tencent.com/document/product/583/9708)

每日 6 点打卡:`0 0 6 * * * *`

每日 6、12、17点打卡:`0 0 6,12,17 * * * *`

![设置触发器.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/设置触发器.png)

### 6、添加环境变量

- 设置 900 秒(**重点**),因为 3 秒太短啦!
- 可选参数,刚接触的朋友我强烈建议使用 QQ 邮箱的推送方式,因为推送消息最全面!
- 如果无误再转 Qmsg 酱(可选),Server酱云函数好像被 ban 了
- USERNAME 字段(必填):手机号1,手机号2,......(与下面密码对应),例如:`1737782***,13602***`
- PASSWORD 字段(必填):密码1,密码2,...... (与上面账号对应),例如:`123456,456789`
- DEVICEID 字段(必填):设备id1,设备id2....(与上面账号对应),例如:`1232,12312`,没有请下载 RegisterDeviceID 获取
- SCKEY 字段(可选):用来开启 Server 酱推送服务,填写一个即可,没有请前往 [Server酱](https://sc.ftqq.com/3.version) 注册获取
- KEY 字段(可选):用来开启 Qmsg 酱推送服务,填写一个即可,没有请前往 [Qmsg酱](https://qmsg.zendee.cn/index.html) 注册获取
- SEND_EMAIL 字段(可选):用来开启 QQ邮箱推送服务,QQ邮箱地址
- SEND_PWD 字段(可选):用来开启 QQ邮箱推送服务,QQ邮箱授权码,**不是 QQ 密码**
- RECEIVE_EMAIL 字段(可选):用来开启 QQ邮箱推送服务,接收邮箱地址,理论上什么邮箱都可

![编辑环境变量.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/编辑环境变量.png)

![设置环境变量.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/设置环境变量.png)

### 7、部署测试

每一次修改代码之后,一定要点一下测试(自动部署),或者部署代码才能生效
**查看推送情况,确认是否成功**,(检查打卡 json 字段中的 areaStr 是否为自己所在地址,如果不在,请一定要修改代码,因为打卡的地址不对可不行;如果 json 字段中还有其他字段,如 deptid,stuNo 等等为 null 或者不对,请务必修改代码,如果 Message 有值为 None(QQ 邮箱推送打卡表格数据),请一定要修改代码,因为该值无法自动填写)如果你显示打卡成功或打卡频繁,且推送的 Message 中没有 None 值,即为成功,**至此每日六点多将会自行打卡****修改代码方法在原仓库 [wiki](https://github.com/ReaJason/17wanxiaoCheckin-Actions/wiki)**,有问题提 [issue](https://github.com/ReaJason/17wanxiaoCheckin-Actions/issues)

![测试.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/测试.png)

### 8、如果有什么报错或者其他问题,请前往 [这里](https://github.com/ReaJason/17wanxiaoCheckin-Actions/wiki) 自行解决

### 9、如果这篇教程有帮到你,或者仓库代码有帮到你,可以赞赏一杯奶茶,谢谢你的光顾!

<img src="https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/支付宝.jpg" width="300"/><img src="https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/微信.png" width="300"/>
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 ReaJason

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added Pictures/Server1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Server2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Server3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Server4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/Server5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/check_status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/click_fork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/end_actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/end_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/end_modify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/end_secrets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/modify_readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/new_secrets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/secrets_details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/start_action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/合成1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/合成2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/合成3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/合成4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/合成5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/安装apk文件.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/安装雷神模拟器.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/微信.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/搜索云函数.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/支付宝.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/新建函数.png
Binary file added Pictures/测试.png
Binary file added Pictures/编辑环境变量.png
Binary file added Pictures/设置环境变量.png
Binary file added Pictures/设置触发器.png
Binary file added Pictures/进入控制台.png
Binary file added Pictures/选择地区.png
Binary file added Pictures/雷神模拟器设置.png
153 changes: 153 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# 🌈17wanxiaoCheckin-Actions

## 由于目前完美校园就登录做了设备检测,我不是大佬,只是个脚本小子,现在用此脚本已无法打卡,建议自寻使用其他方法。大家也差不多回家了,让我们美好的一天从早起打卡开始吧,感谢大家的Star✨。

------

**🌈2020.01.24:关闭 GitHub Actions,脚本已失效,请勿 fork**

**🤺2021.01:21:试图修复可能会出现的登录失败,修复账号打卡失败脚本停止,添加 QQ 邮箱推送(写 bug )**

**🎭2021.01.20:完美校园更换过登录接口,之前的在 GitHub 上无法使用,已修复(由 [@llkhs](https://github.com/llkhs) 提供方法)**

**🎐2021.01.19:注释掉校内打卡相关代码,添加 Server 酱推送失败重试代码**

**💦2021.01.16:由于 GitHub Actions 的服务器原因,添加腾讯云函数方案**

**🚀2021.01.08:增加一些代码注释方便大家看懂代码,编写 Wiki 方便提供帮助**

**🦄2020.12.02:更新校内打卡,(健康打卡,校内打卡)我全都要!**

**💫2020.11.23:支持多人打卡,重写了一下代码**

**⚡2020.11.16:本项目已更新,使用本项目,你不需要抓包就可以使用(理论上大概......)**

------

[中南林业科技大学](https://www.csuft.edu.cn/) 测试可用,欢迎大家 fork 测试使用,如果可用的话,可以开 [issue](https://github.com/ReaJason/17wanxiaoCheckin-Actions/issues) 让更多人知道

感谢 [@zhongbr](https://github.com/zhongbr) 的完美校园逆向登录分析代码的分享:[完美校园模拟登录](https://github.com/zhongbr/wanmei_campus)

之前的抓包教程请前往:[完美校园抓包打卡](https://github.com/ReaJason/17wanxiaoCheckin-Actions/blob/master/README_LAST.md),本项目使用方法,请参考此页面下面

图片无法加载,可以前往我的博客查看 [使用方法](https://reajason.top/2020/06/28/17wanxiaoCheckin/#%E4%B8%89%E3%80%81%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)(加载也可能很慢)

------

## 🌟功能介绍

1. 完美校园模拟登录获取 token
2. 自动获取上次提交的打卡数据
3. ~~自动化任务分三次运行~~(ps:目前已关闭校内打卡)
- `上午六点多`:健康打卡
4. 微信推送打卡消息

## 💢使用方法(已失效) —— 可使用 [腾讯云函数](https://github.com/ReaJason/17wanxiaoCheckin-Actions/blob/master/17wanxiaoCheckin-SCF.md)

1. 请先确保在**完美校园 APP**中进入健康打卡界面,信息能够正确的自动填写,并手动打一次卡(只能是 app,小程序不行!)(没有自动填写的项,可以自行修改代码)

2. 点击右上角的 `fork``fork` 本项目到自己仓库中



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/click_fork.png)



3. 开启 `Actions`



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/start_action.png)



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/end_actions.png)



4. 设置三个 `secrets` 字段:`USERNAME``PASSWORD``SCKEY`(对应就是账号,密码以及 Server 酱)

1. 如果是多人打卡的话:
- USERNAME字段:手机号1,手机号2,......(与下面密码对应),例如:`1737782***,13602***`
- PASSWORD字段:密码1,密码2,...... (与上面账号对应),例如:`123456,456789`
- SCKEY字段:填写一个即可,例如:`SCU90543*******`,没有请前往 [Server酱](https://sc.ftqq.com/3.version) 注册获取



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/new_secrets.png)



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/secrets_details.png)



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/end_secrets.png)



5. 修改 `README.md` 选第一个就好,不要选第二个Create a new branch***(为什么教着做都不听话,泪目),测试一次



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/modify_readme.png)



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/end_modify.png)



6. 查看 `Actions` 运行情况,以及微信推送情况(检查json 字段中的 areaStr 是否为自己所在地址,如果不在,请一定要修改代码,因为打卡的地址不对可不行;如果 Message 有值为 None,请一定要修改代码,因为该值无法自动填写),**至此每日六点多将会自行打卡**



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/check_status.png)



![](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/end_check.png)


## ✅Q&A

### 1、怎么图片都无法加载出来,看了个寂寞?

可以前往我的博客查看 [使用方法](https://reajason.top/2020/06/28/17wanxiaoCheckin/#%E4%B8%89%E3%80%81%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)

### 2、fork之后,修改README.md并没有触发actions?

请进入 Actions,Enable workflow

![enable](https://cdn.jsdelivr.net/gh/LingSiKi/images/img/enable.png)

### 3、我们学校要求打卡的时间不一样,这个自动运行的时间该怎么修改?

进入 `.github/workflows/run.yml `修改时间,请不要搁那掐着秒算程序运行,你设置好了,明天就一定能好好运行,Giuhub Actions大概会有10~20分钟的延迟

```python
"""
这里的cron就是脚本运行时间,22,4,9对应的时间是UTC时,对应北京时间早上六点,中午十二点,下午五点
详细对应关系请查看:http://timebie.com/cn/universalbeijing.php
只有健康打卡的小伙伴可以只留着22就可以了,这样其余两个时间就不会打卡
如果害怕程序报错导致上午健康打卡没打,可设置6点和7点各运行一次即:0 22,23 * * *
GitHub Actions 自动化任务执行有一定延迟,大概10~60分钟不等......
"""
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 22,4,9 * * *
```

### 4、程序报错显示密码错误,还有 * 次机会?

请立马修改 secrets 的密码再尝试运行

### 5、健康打卡问题汇总请前往 [wiki](https://github.com/ReaJason/17wanxiaoCheckin-Actions/wiki#%E5%81%A5%E5%BA%B7%E6%89%93%E5%8D%A1%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB)

### 6、校内打卡问题汇总请前往 [wiki](https://github.com/ReaJason/17wanxiaoCheckin-Actions/wiki#%E6%A0%A1%E5%86%85%E6%89%93%E5%8D%A1%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB)
111 changes: 111 additions & 0 deletions README_LAST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# 🛴17wanxiaoCheckin-Actions

## 模拟器抓包获取数据(如果你的手机已ROOT可以直接用手机哦)

### 1、模拟器配置及使用

- 天翼网盘(含雷神模拟器、完美校园、httpcanary安装包)
- 点链接进去全部下下来:https://cloud.189.cn/t/VRZryeb2aIBr
- 解压雷神模拟器压缩包并点击绿化(出现什么异常的话把杀毒软件关闭)
- 绿化完成点击桌面图标启动
- 拖动apk文件到模拟器窗口完成app的安装
- **(如出现模拟器抓包定位问题百度自行解决)**

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/安装雷神模拟器.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/安装雷神模拟器.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/雷神模拟器设置.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/雷神模拟器设置.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/安装apk文件.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/安装apk文件.png)

### 2、httpcanary的配置及使用

- 打开刚刚安装在桌面的Httpcanary
- 安装证书并移动到根目录
- 设置目标应用为完美校园APP(就不需要其余操作了,不要点右下角的小飞机)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成1.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成1.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成2.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成2.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成3.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成3.png)

### 3、开始抓包

- 打开完美校园app(显示root忽略即可),进入健康打卡并设置相关信息(不提交)
- 切换到httpcanary,开启抓包(点右下角的小飞机)
- 切换完美校园提交信息,打卡成功
- 切换httpcanary,停止抓包

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成4.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成4.png)

### 4、抓包分析

- 翻阅找到sass字样的链接,点击进去(如果有多个, 请点靠上面的)
- 第一个框为请求连接,第二个框为此网络请求为post请求
- 点击请求一栏,并在底部选择text,即可查看自己所填写的数据(记下来,或者复制出去)
- 点击响应一栏,并在底部选择text,即可查看响应结果(成功则为打卡成功,打卡频繁则失败)
- 至此我们就获得了我们绝大多数的数据了(下面项目使用的数据填写需要)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成5.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/合成5.png)



## Server酱服务的申请

### 1、申请一个GItHub账号

- Github官网:https://github.com/ (使用邮箱注册并验证)

### 2、注册Server酱服务,并绑定微信

- Server酱官网:http://sc.ftqq.com/3.version
- 使用刚注册的Github账号登录
- 微信绑定,扫码关注即可绑定
- 测试一下是否能推送成功,并复制下自己的SCKEY(下面项目使用的数据填写需要)
- 至此我们就获得了我们的最后一个数据,接下来就是了解如何使用此项目文件了

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server1.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server1.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server2.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server2.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server3.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server3.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server4.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server4.png)

![https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server5.png](https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/Server5.png)

## 清空Commit记录

> 可能由于大家测试填写自己的数据进入py文件中,会在commit记录中出现
>
> 为了保护自己的信息,应该清除commit记录
1、在自己电脑桌面新建一个文件夹(默认你已安装git)

2、进入文件夹,右键点击 Git Bash Here,依次运行如下命令

```
git init
git clone [email protected]:.../17wanxiaoCheckin-Actions.git(你项目的ssh地址)
```

3、进入克隆之后的文件夹,右键点击 Git Bash Here,依次运行如下命令即可

```
git checkout --orphan newBranch
git add -A # Add all files and commit them
git commit -am "change"
git branch -D master # Deletes the master branch
git branch -m master # Rename the current branch to master
git push -f origin master # Force push master branch to github
git gc --aggressive --prune=all # remove the old files
```

## 赞赏

如果你觉得该教程写得还可以且有帮到你的话,欢迎给我打赏一杯奶茶~~

<img src="https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/支付宝.jpg" width="300"/><img src="https://cdn.jsdelivr.net/gh/ReaJason/17wanxiaoCheckin-Actions/Pictures/微信.png" width="300"/>



Loading

0 comments on commit 106871c

Please sign in to comment.