From 41b5c6606c1a2a048d362162ad95904ffa8b40a1 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/zzz/signal_log.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/zzz/signal_log.py b/plugins/zzz/signal_log.py index 5f69e80..410c013 100644 --- a/plugins/zzz/signal_log.py +++ b/plugins/zzz/signal_log.py @@ -3,7 +3,8 @@ from io import BytesIO from typing import Optional, TYPE_CHECKING, List, Union, Tuple, Dict from urllib.parse import urlencode -from simnet import ZZZClient, Region +from simnet import ZZZClient, Region, Game +from simnet.client.routes import GACHA_INFO_URL from simnet.models.zzz.wish import ZZZBannerType from telegram import ( InlineKeyboardButton, @@ -410,7 +411,7 @@ class WishLogPlugin(Plugin.Conversation): if not authkey: await message.reply_text("生成失败,仅国服且绑定 stoken 的用户才能生成调频记录链接") else: - url = "https://public-operation-nap.mihoyo.com/common/gacha_record/api/getGachaLog" + url = str(GACHA_INFO_URL.get_url(Region.CHINESE, Game.ZZZ) / "getGachaLog") params = { "authkey_ver": 1, "lang": "zh-cn",