🐛 Fix webapp invalid url

This commit is contained in:
xtaodada 2023-06-03 12:20:18 +08:00
parent 86c3225228
commit 560b3c1967
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class StartPlugin(Plugin):
return return
url = ( url = (
f"{config.pass_challenge_user_web}/webapp?" f"{config.pass_challenge_user_web}/webapp?"
f"username={bot_username}&command=verify&gt={gt}&challenge={challenge}&uid={uid}" f"gt={gt}&username={bot_username}&command=verify&challenge={challenge}&uid={uid}"
) )
await message.reply_text( await message.reply_text(
"请尽快在10秒内完成手动验证\n或发送 /web_cancel 取消操作", "请尽快在10秒内完成手动验证\n或发送 /web_cancel 取消操作",

View File

@ -98,7 +98,7 @@ class SignSystem(Plugin):
return InlineKeyboardMarkup([[InlineKeyboardButton("请尽快点我进行手动验证", callback_data=data)]]) return InlineKeyboardMarkup([[InlineKeyboardButton("请尽快点我进行手动验证", callback_data=data)]])
url = ( url = (
f"{config.pass_challenge_user_web}?" f"{config.pass_challenge_user_web}?"
f"username={bot_username}&command=sign&gt={gt}&challenge={challenge}&uid={uid}" f"gt={gt}&username={bot_username}&command=sign&challenge={challenge}&uid={uid}"
) )
return InlineKeyboardMarkup([[InlineKeyboardButton("请尽快点我进行手动验证", url=url)]]) return InlineKeyboardMarkup([[InlineKeyboardButton("请尽快点我进行手动验证", url=url)]])