Add badges; another way to get cookie

This commit is contained in:
y1ndan 2020-11-18 12:56:57 +08:00 committed by GitHub
parent 01e2604d4c
commit 5cee8abb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,15 @@
# Genshin Impact Helper
<div align="center">
<h1 align="center">
Genshin Impact Helper
</h1>
[![GitHub stars](https://img.shields.io/github/stars/y1ndan/genshin-impact-helper?style=flat-square)](https://github.com/y1ndan/genshin-impact-helper/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/y1ndan/genshin-impact-helper?style=flat-square)](https://github.com/y1ndan/genshin-impact-helper/network)
[![GitHub issues](https://img.shields.io/github/issues/y1ndan/genshin-impact-helper?style=flat-square)](https://github.com/y1ndan/genshin-impact-helper/issues)
[![GitHub contributors](https://img.shields.io/github/contributors/y1ndan/genshin-impact-helper?style=flat-square)](https://github.com/y1ndan/genshin-impact-helper/graphs/contributors)
![Github workflow status](https://img.shields.io/github/workflow/status/y1ndan/genshin-impact-helper/Genshin%20Impact%20Helper?label=status&style=flat-square)
</div>
## 📎前言
@ -21,12 +32,27 @@
### 2. 获取 Cookie
* 浏览器打开 https://bbs.mihoyo.com/ys/ 并登录账号
浏览器打开 https://bbs.mihoyo.com/ys/ 并登录账号
#### 方法一
* 按`F12`,打开`开发者工具`,找到`Network`并点击
* 按`F5`刷新页面,按下图复制`Cookie`
> ![cookie](https://i.loli.net/2020/10/28/TMKC6lsnk4w5A8i.png)
#### 方法二
* 复制以下代码
```
JSON.stringify({
Cookie: document.cookie
});
```
* 按`F12`,打开`开发者工具`,找到`Console`并点击
* 命令行粘贴代码并运行,获得类似`"{"Cookie":"xxxxxx"}"`的输出信息
* `xxxxxx`部分即为所需复制的`Cookie`
### 3. 添加 Cookie 至 Secrets
* 回到项目页面,依次点击`Settings`-->`Secrets`-->`New secret`
@ -43,7 +69,7 @@
返回项目主页面,点击上方的`Actions`,再点击左侧的`Genshin Impact Helper`,再点击`Run workflow`
![run](https://i.loli.net/2020/10/28/5ylvgdYf9BDMqAH.png)
> ![run](https://i.loli.net/2020/10/28/5ylvgdYf9BDMqAH.png)
至此,部署完毕。
@ -78,4 +104,5 @@
1. 程序会在每天早上自动执行签到流程,也可以随时通过上述`步骤4`手动触发
2. 登录失效时,尝试重新更换`Cookie`
3. 支持多账号,不同`Cookie`之间用`#`分开即可
4. 支持官服和B服