genshin-impact-helper/README.md
2020-10-28 17:32:03 +08:00

53 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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. 程序会在每天早上 6 点自动执行签到,也可以通过上述**步骤4**手动触发执行
2. 登录失效时,尝试重新更换 `Cookie`
3. 支持多账号,不同 `Cookie` 之间用 `#` 分开即可