mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-12-03 20:31:58 +00:00
🐛 Fix wish_log export authkey url cannot visit
This commit is contained in:
parent
a15cb2ca13
commit
41b5c6606c
@ -3,7 +3,8 @@ from io import BytesIO
|
|||||||
from typing import Optional, TYPE_CHECKING, List, Union, Tuple, Dict
|
from typing import Optional, TYPE_CHECKING, List, Union, Tuple, Dict
|
||||||
from urllib.parse import urlencode
|
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 simnet.models.zzz.wish import ZZZBannerType
|
||||||
from telegram import (
|
from telegram import (
|
||||||
InlineKeyboardButton,
|
InlineKeyboardButton,
|
||||||
@ -410,7 +411,7 @@ class WishLogPlugin(Plugin.Conversation):
|
|||||||
if not authkey:
|
if not authkey:
|
||||||
await message.reply_text("生成失败,仅国服且绑定 stoken 的用户才能生成调频记录链接")
|
await message.reply_text("生成失败,仅国服且绑定 stoken 的用户才能生成调频记录链接")
|
||||||
else:
|
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 = {
|
params = {
|
||||||
"authkey_ver": 1,
|
"authkey_ver": 1,
|
||||||
"lang": "zh-cn",
|
"lang": "zh-cn",
|
||||||
|
Loading…
Reference in New Issue
Block a user