From 34be960e33291313cfee18edacc02e3f6d880803 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 1 Dec 2024 21:55:44 +0800 Subject: [PATCH] :bug: Fix wish_log export authkey url cannot visit --- plugins/genshin/wish_log.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/wish_log.py b/plugins/genshin/wish_log.py index 641260f7..6f0da5b2 100644 --- a/plugins/genshin/wish_log.py +++ b/plugins/genshin/wish_log.py @@ -4,7 +4,8 @@ from typing import Optional, TYPE_CHECKING, List, Union, Tuple from urllib.parse import urlencode from aiofiles import open as async_open -from simnet import GenshinClient, Region +from simnet import GenshinClient, Region, Game +from simnet.client.routes import GACHA_INFO_URL from simnet.models.genshin.wish import BannerType from telegram import ( InlineKeyboardButton, @@ -431,7 +432,7 @@ class WishLogPlugin(Plugin.Conversation): if not authkey: await message.reply_text("生成失败,仅国服且绑定 stoken 的用户才能生成抽卡记录链接") else: - url = "https://hk4e-api.mihoyo.com/event/gacha_info/api/getGachaLog" + url = str(GACHA_INFO_URL.get_url(Region.CHINESE, Game.GENSHIN) / "getGachaLog") params = { "authkey_ver": 1, "lang": "zh-cn",