docs: update the way to get cookie & fix issue #32

This commit is contained in:
y1ndan 2020-12-03 23:50:21 +08:00
parent d6896001c3
commit 5a389246d3

View File

@ -46,13 +46,18 @@ Genshin Impact Helper
* 复制以下代码
```
JSON.stringify({
Cookie: document.cookie
});
var cookie = document.cookie;
var ask = confirm('Cookie:' + cookie + '\n\n是否复制内容到剪切板');
if (ask == true) {
copy(cookie);
msg = cookie;
} else {
msg = 'Cancel';
}
```
* 按`F12`,打开`开发者工具`,找到`Console`并点击
* 命令行粘贴代码并运行,获得类似`"{"Cookie":"xxxxxx"}"`的输出信息
* `xxxxxx`部分即为所需复制的`Cookie`
* 命令行粘贴代码并运行,获得类似`Cookie:xxxxxx`的输出信息
* `xxxxxx`部分即为所需复制的`Cookie`,点击确定复制
### 3. 添加 Cookie 至 Secrets