From 3b26c0b49f86cb5d550526035fa6bcae3e82bbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sat, 10 Dec 2022 20:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Modify=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/system/webapp.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/system/webapp.py b/plugins/system/webapp.py index 936af92d..31556f2b 100644 --- a/plugins/system/webapp.py +++ b/plugins/system/webapp.py @@ -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)