fix: copy button shows only the code number

This commit is contained in:
2026-07-11 21:49:54 +08:00
parent b835812f38
commit 03c18cdb76

View File

@@ -173,7 +173,7 @@ def _summary_keyboard(can_reply: bool = True, is_promotion: bool = False,
kb.append([{"text": f"🔗 {text}", "url": url}]) kb.append([{"text": f"🔗 {text}", "url": url}])
if verification_code: if verification_code:
code = verification_code.split(" ", 1)[-1] if " " in verification_code else verification_code code = verification_code.split(" ", 1)[-1] if " " in verification_code else verification_code
kb.append([{"text": f"📋 复制验证码 {code}", "type": "copy_text", "text": code}]) kb.append([{"text": code, "type": "copy_text", "text": code}])
return {"inline_keyboard": kb} return {"inline_keyboard": kb}