Update README.md

This commit is contained in:
y1ndan 2020-10-28 17:17:06 +08:00
parent 3554100c38
commit a02b1a51c0
2 changed files with 47 additions and 4 deletions

2
.gitattributes vendored
View File

@ -1,2 +0,0 @@
# Auto detect text files and perform LF normalization
* text=auto

View File

@ -1,2 +1,47 @@
# genshin-impact-helper
米游社原神自动每日签到 Auto get Genshin Impact daily bonus by GitHub Action.
# genshin-impact-helper#
# 前言
原神是我见过的唯一一个游戏本体和签到福利分离的游戏,玩家为了签到还要额外下载米游社 App。
平心而论,目前的每日签到奖励真的不咋地,都知道是蚊子腿。事实上,你完全可以选择无视签到,不签也没啥大的损失;或者选择手动签到,但这样的话哪天忘记打卡了就很头疼。
我承认是馋了这 **6W+** 摩拉和紫色经验书的奖励,于是撸了这个项目,实现自动每日签到。
**如果觉得本项目对你有帮助,顺手点个 `Star` 吧QAQ❤**
## 部署
### 1. Fork 仓库
* 项目地址:[github/genshin-impact-helper](https://github.com/y1ndan/genshin-impact-helper)
* 点击右上角**Fork**到自己的账号下
![fork](https://i.loli.net/2020/10/28/qpXowZmIWeEUyrJ.png)
### 2. 获取 Cookie
* 浏览器打开 https://bbs.mihoyo.com/ys/ 并登录账号
* 按**F12**,打开**开发者工具**,找到**Network**并点击
* 按**F5**刷新页面,按下图复制**Cookie**
![cookie](https://i.loli.net/2020/10/28/TMKC6lsnk4w5A8i.png)
### 3. 添加 Cookie 至 Secrets
* 回到项目页面,依次点击 Settings --> Secrets --> New secret
![new-secret.png](https://i.loli.net/2020/10/28/sxTuBFtRvzSgUaA.png)
* 建立名为`COOKIE`的 secret值为**步骤2**中复制的**Cookie**内容,最后点击**Add secret**
![add-secret](https://i.loli.net/2020/10/28/sETkVdmrNcCUpgq.png)
### 4. 启用 Action
> Actions 默认处于关闭状态,需要手动执行一次工作流,验证是否可以正常工作。
点击 **Actions**,再点击左侧的**Genshin Impact Helper**,再点击**Run workflow**
![run](https://i.loli.net/2020/10/28/5ylvgdYf9BDMqAH.png)
至此,部署完毕。
## 说明
1. 程序会在每天国际标准时间 22 点(北京时间早上 6 点)自动执行签到,也可以通过 Push 操作手动触发执行
2. 登录失效时,尝试重新更换 `Cookie`
3. 支持多账号,不同 `Cookie` 之间用 **#** 分开即可