mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 12:02:16 +00:00
🐛 Fix Malformed request
in BindAccountPlugin
This commit is contained in:
parent
dc474a72da
commit
1340a6a975
@ -152,6 +152,9 @@ class BindAccountPlugin(Plugin.Conversation):
|
|||||||
logger.warning("获取账号信息发生错误 %s 账户信息未公开", account_id)
|
logger.warning("获取账号信息发生错误 %s 账户信息未公开", account_id)
|
||||||
return ConversationHandler.END
|
return ConversationHandler.END
|
||||||
except SimnetBadRequest as exc:
|
except SimnetBadRequest as exc:
|
||||||
|
if exc.ret_code == -10001:
|
||||||
|
await message.reply_text("账号所属服务器与选择服务器不符,请检查", reply_markup=ReplyKeyboardRemove())
|
||||||
|
return ConversationHandler.END
|
||||||
await message.reply_text("获取账号信息发生错误", reply_markup=ReplyKeyboardRemove())
|
await message.reply_text("获取账号信息发生错误", reply_markup=ReplyKeyboardRemove())
|
||||||
logger.error("获取账号信息发生错误")
|
logger.error("获取账号信息发生错误")
|
||||||
logger.exception(exc)
|
logger.exception(exc)
|
||||||
@ -215,6 +218,9 @@ class BindAccountPlugin(Plugin.Conversation):
|
|||||||
if exc.retcode == 1034:
|
if exc.retcode == 1034:
|
||||||
await message.reply_text("出错了呜呜呜 ~ 请稍后重试")
|
await message.reply_text("出错了呜呜呜 ~ 请稍后重试")
|
||||||
return ConversationHandler.END
|
return ConversationHandler.END
|
||||||
|
elif exc.ret_code == -10001:
|
||||||
|
await message.reply_text("账号所属服务器与选择服务器不符,请检查", reply_markup=ReplyKeyboardRemove())
|
||||||
|
return ConversationHandler.END
|
||||||
await message.reply_text("获取账号信息发生错误", reply_markup=ReplyKeyboardRemove())
|
await message.reply_text("获取账号信息发生错误", reply_markup=ReplyKeyboardRemove())
|
||||||
logger.error("获取账号信息发生错误")
|
logger.error("获取账号信息发生错误")
|
||||||
logger.exception(exc)
|
logger.exception(exc)
|
||||||
|
Loading…
Reference in New Issue
Block a user