mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
🎨 Update Handle InvalidCookies
Exception
This commit is contained in:
parent
738e94d9ed
commit
98db3fe755
@ -249,14 +249,14 @@ class AvatarListPlugin(Plugin, BasePlugin):
|
|||||||
await notice.delete()
|
await notice.delete()
|
||||||
await client.get_genshin_user(client.uid)
|
await client.get_genshin_user(client.uid)
|
||||||
logger.warning("用户 %s[%s] 无法请求角色数数据 API返回信息为 [%s]%s", user.full_name, user.id, exc.retcode, exc.original)
|
logger.warning("用户 %s[%s] 无法请求角色数数据 API返回信息为 [%s]%s", user.full_name, user.id, exc.retcode, exc.original)
|
||||||
reply_message = await message.reply_text("出错了呜呜呜 ~ 当前账号无法请求角色数数据。\n请尝试登录通行证,在账号管理里面选择账号游戏信息,将原神设置为默认角色。")
|
reply_message = await message.reply_text("出错了呜呜呜 ~ 当前访问令牌无法请求角色数数据,请尝试重新获取Cookie。")
|
||||||
if filters.ChatType.GROUPS.filter(message):
|
if filters.ChatType.GROUPS.filter(message):
|
||||||
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 30)
|
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 30)
|
||||||
self._add_delete_message_job(context, message.chat_id, message.message_id, 30)
|
self._add_delete_message_job(context, message.chat_id, message.message_id, 30)
|
||||||
return
|
return
|
||||||
except GenshinException as e:
|
except GenshinException as e:
|
||||||
|
await notice.delete()
|
||||||
if e.retcode == -502002:
|
if e.retcode == -502002:
|
||||||
await notice.delete()
|
|
||||||
reply_message = await message.reply_html("请先在米游社中使用一次<b>养成计算器</b>后再使用此功能~")
|
reply_message = await message.reply_html("请先在米游社中使用一次<b>养成计算器</b>后再使用此功能~")
|
||||||
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 20)
|
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 20)
|
||||||
return
|
return
|
||||||
|
@ -130,9 +130,7 @@ class Ledger(Plugin, BasePlugin):
|
|||||||
logger.warning(
|
logger.warning(
|
||||||
"用户 %s[%s] 无法请求旅行札记数据 API返回信息为 [%s]%s", user.full_name, user.id, exc.retcode, exc.original
|
"用户 %s[%s] 无法请求旅行札记数据 API返回信息为 [%s]%s", user.full_name, user.id, exc.retcode, exc.original
|
||||||
)
|
)
|
||||||
reply_message = await message.reply_text(
|
reply_message = await message.reply_text("出错了呜呜呜 ~ 当前访问令牌无法请求角色数数据,请尝试重新获取Cookie。")
|
||||||
"出错了呜呜呜 ~ 当前账号无法请求旅行札记数据。\n请尝试登录通行证,在账号管理里面选择账号游戏信息,将原神设置为默认角色。"
|
|
||||||
)
|
|
||||||
if filters.ChatType.GROUPS.filter(message):
|
if filters.ChatType.GROUPS.filter(message):
|
||||||
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 30)
|
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 30)
|
||||||
self._add_delete_message_job(context, message.chat_id, message.message_id, 30)
|
self._add_delete_message_job(context, message.chat_id, message.message_id, 30)
|
||||||
|
Loading…
Reference in New Issue
Block a user