From 5f65dc18a5f59451916fb1d018b24e1f80d84619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sat, 24 Dec 2022 14:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20Get=20Cookies=20Step=20?= =?UTF-8?q?Description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/cookies.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/genshin/cookies.py b/plugins/genshin/cookies.py index f580e5fa..da3bf2d0 100644 --- a/plugins/genshin/cookies.py +++ b/plugins/genshin/cookies.py @@ -134,7 +134,7 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation): return ConversationHandler.END elif message.text == "米游社": region = RegionEnum.HYPERION - bbs_url = "https://www.miyoushe.com/ys/" + bbs_url = "https://user.mihoyo.com/" bbs_name = "米游社" elif message.text == "HoYoLab": bbs_url = "https://www.hoyolab.com/home" @@ -163,10 +163,10 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation): "关于如何获取Cookies\n" "现在因为网站HttpOnly策略无法通过脚本获取,因此操作只能在PC上运行。\n\n" "PC:\n" - f"1、打开 {bbs_name} 并登录\n" + f"1、打开通行证并登录\n" "2、按F12打开开发者工具\n" "3、将开发者工具切换至网络(Network)并点击过滤栏中的文档(Document)并刷新页面\n" - "4、在请求列表找到 /ys 并点击\n" + "4、在请求列表中选择第一个并点击\n" "5、找到并复制请求标头(Request Headers)中的Cookie\n" "如发现没有请求标头(Request Headers)大概因为缓存的存在需要你点击禁用缓存(Disable Cache)再次刷新页面" ) @@ -263,7 +263,7 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation): except InvalidCookies: logger.info("用户 %s[%s] Cookies已经过期", user.full_name, user.id) await message.reply_text( - "获取账号信息失败,返回Cookies已经过期,请尝试在无痕浏览器登录通行证后获取Cookies。", reply_markup=ReplyKeyboardRemove() + "获取账号信息失败,返回Cookies已经过期,请尝试在无痕浏览器中登录获取Cookies。", reply_markup=ReplyKeyboardRemove() ) return ConversationHandler.END except GenshinException as exc: