diff --git a/modules/apihelper/utility/helpers.py b/modules/apihelper/utility/helpers.py index 6b7e9ae..391088a 100644 --- a/modules/apihelper/utility/helpers.py +++ b/modules/apihelper/utility/helpers.py @@ -54,13 +54,13 @@ def get_ds(ds_type: str = None, new_ds: bool = False, data: Any = None, params: c = hex_digest(f"salt={salt}&t={t}&r={r}") return f"{t},{r},{c}" - app_version = "2.42.1" + app_version = "2.44.1" client_type = "5" - salt = "9gaxOdeeY2W9dw5x62pywhik8cxy5TIJ" + salt = "IEIZiKYaput2OCKQprNuGsog1NZc1FkS" ds = old() if ds_type in {"android", "2"}: client_type = "2" - salt = "jrU9ULHGZdM9Os3uGHOpjyRELYxby5cg" + salt = "dZAwGk4e9aC0MXXItkwnHamjA1x30IYw" ds = old() elif ds_type == "android_new": client_type = "2" diff --git a/plugins/genshin/gacha/gacha_log.py b/plugins/genshin/gacha/gacha_log.py index 5b99f18..0fc03a1 100644 --- a/plugins/genshin/gacha/gacha_log.py +++ b/plugins/genshin/gacha/gacha_log.py @@ -1,3 +1,4 @@ +import contextlib from io import BytesIO import genshin @@ -192,7 +193,8 @@ class GachaLogPlugin(Plugin.Conversation, BasePlugin.Conversation): lang="zh-cn", uid=user_info.yuanshen_uid, ) - authkey = await get_authkey_by_stoken(client) + with contextlib.suppress(Exception): + authkey = await get_authkey_by_stoken(client) if not authkey: await message.reply_text( "开始导入祈愿历史记录:请通过 https://paimon.moe/wish/import 获取抽卡记录链接后发送给我" diff --git a/plugins/genshin/pay_log.py b/plugins/genshin/pay_log.py index 26a95e7..157b6aa 100644 --- a/plugins/genshin/pay_log.py +++ b/plugins/genshin/pay_log.py @@ -1,3 +1,5 @@ +import contextlib + import genshin from telegram import Update, User, InlineKeyboardButton, InlineKeyboardMarkup from telegram.constants import ChatAction @@ -96,7 +98,8 @@ class PayLogPlugin(Plugin.Conversation, BasePlugin.Conversation): lang="zh-cn", uid=user_info.yuanshen_uid, ) - authkey = await get_authkey_by_stoken(client) + with contextlib.suppress(Exception): + authkey = await get_authkey_by_stoken(client) if not authkey: await message.reply_text( "开始导入充值历史记录:请通过 https://paimon.moe/wish/import 获取抽卡记录链接后发送给我"