🍱 Update 2.44.1 ds salt

This commit is contained in:
xtaodada 2023-01-26 17:29:27 +08:00
parent d28db63707
commit 77fd0406ae
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 10 additions and 5 deletions

View File

@ -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}") c = hex_digest(f"salt={salt}&t={t}&r={r}")
return f"{t},{r},{c}" return f"{t},{r},{c}"
app_version = "2.42.1" app_version = "2.44.1"
client_type = "5" client_type = "5"
salt = "9gaxOdeeY2W9dw5x62pywhik8cxy5TIJ" salt = "IEIZiKYaput2OCKQprNuGsog1NZc1FkS"
ds = old() ds = old()
if ds_type in {"android", "2"}: if ds_type in {"android", "2"}:
client_type = "2" client_type = "2"
salt = "jrU9ULHGZdM9Os3uGHOpjyRELYxby5cg" salt = "dZAwGk4e9aC0MXXItkwnHamjA1x30IYw"
ds = old() ds = old()
elif ds_type == "android_new": elif ds_type == "android_new":
client_type = "2" client_type = "2"

View File

@ -1,3 +1,4 @@
import contextlib
from io import BytesIO from io import BytesIO
import genshin import genshin
@ -192,7 +193,8 @@ class GachaLogPlugin(Plugin.Conversation, BasePlugin.Conversation):
lang="zh-cn", lang="zh-cn",
uid=user_info.yuanshen_uid, 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: if not authkey:
await message.reply_text( await message.reply_text(
"<b>开始导入祈愿历史记录:请通过 https://paimon.moe/wish/import 获取抽卡记录链接后发送给我" "<b>开始导入祈愿历史记录:请通过 https://paimon.moe/wish/import 获取抽卡记录链接后发送给我"

View File

@ -1,3 +1,5 @@
import contextlib
import genshin import genshin
from telegram import Update, User, InlineKeyboardButton, InlineKeyboardMarkup from telegram import Update, User, InlineKeyboardButton, InlineKeyboardMarkup
from telegram.constants import ChatAction from telegram.constants import ChatAction
@ -96,7 +98,8 @@ class PayLogPlugin(Plugin.Conversation, BasePlugin.Conversation):
lang="zh-cn", lang="zh-cn",
uid=user_info.yuanshen_uid, 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: if not authkey:
await message.reply_text( await message.reply_text(
"<b>开始导入充值历史记录:请通过 https://paimon.moe/wish/import 获取抽卡记录链接后发送给我" "<b>开始导入充值历史记录:请通过 https://paimon.moe/wish/import 获取抽卡记录链接后发送给我"