Send uid to manual pass challenge page

适配新版手动验证界面
This commit is contained in:
kotoriのねこ 2022-11-01 09:33:23 -05:00 committed by GitHub
parent c83f1c0afc
commit d937e1e3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ class SignSystem:
gt, challenge = await self.get_challenge(uid) gt, challenge = await self.get_challenge(uid)
if not challenge or not gt: if not challenge or not gt:
return return
url = f"{config.pass_challenge_user_web}?username={bot.app.bot.username}&gt={gt}&challenge={challenge}" url = f"{config.pass_challenge_user_web}?username={bot.app.bot.username}&gt={gt}&challenge={challenge}&uid={uid}"
return InlineKeyboardMarkup([[InlineKeyboardButton("请尽快点我进行手动验证", url=url)]]) return InlineKeyboardMarkup([[InlineKeyboardButton("请尽快点我进行手动验证", url=url)]])
@staticmethod @staticmethod