🎨 Modify text

This commit is contained in:
洛水居室 2022-12-10 20:44:04 +08:00
parent 4b976f70d5
commit 3b26c0b49f
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -138,7 +138,13 @@ class WebApp(Plugin):
logger.warning(
"用户 %s[%s] WEB_APP_DATA 请求错误 [%s]%s", user.full_name, user.id, result.code, result.message
)
await message.reply_text(result.message, reply_markup=ReplyKeyboardRemove())
if result.path == "verify":
await message.reply_text(
"验证过程中出现问题 %s\n如果继续遇到该问题,请打开米游社→我的角色中尝试手动通过验证" % result.message,
reply_markup=ReplyKeyboardRemove(),
)
else:
await message.reply_text("WebApp返回错误 %s" % result.message, reply_markup=ReplyKeyboardRemove())
else:
logger.warning("用户 %s[%s] WEB_APP_DATA 非法数据", user.full_name, user.id)