You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
form data: source=main_web&code=交换代码&go_url=https:%2F%2Fpassport.bilibili.com%2Fpc%2Fpassport%2Frisk%2FsecTip%3Fgourl%3Dhttps%253A%252F%252Fwww.bilibili.com%252F%26bind_tel%3D1&csrf=***
The text was updated successfully, but these errors were encountered:
提交前请确认
API 来源
Web 端(含 h5)
API 类型
REST
API 地址
https://passport.bilibili.com/x/safecenter/sec/verify
详情描述
在进行密码登录过程中遇到手机号验证,登录接口理应返回一个链接,通往手机号验证页面。此验证页面链接的参数中期望包含
request_id
和tmp_token
字段,然而实际操作中却发现返回的链接缺失request_id
字段。request_id
在手机号验证全过程中只出现在验证手机验证码接口,即 https://passport.bilibili.com/x/safecenter/login/tel/verify。在这种特殊情况下,验证手机验证码接口变为 https://passport.bilibili.com/x/safecenter/sec/verify。两个接口传入的字段的差异为,type: loginTelCheck
变为了verify_type: sms
此接口返回值与 https://passport.bilibili.com/x/safecenter/login/tel/verify 保持一致,之后的过程也几乎一致。只是最后的交换 cookies 接口 https://passport.bilibili.com/x/passport-login/web/exchange_cookie 无需再提供
request_id
字段,取而代之的是go_url
字段,值为https://passport.bilibili.com/pc/passport/risk/secTip?gourl=https%3A%2F%2Fwww.bilibili.com%2F&bind_tel=1
。提供一个全过程复现,加粗接口为不符合预期表现的接口:
https://passport.bilibili.com/x/safecenter/captcha/pre
https://passport.bilibili.com/x/safecenter/common/sms/send
https://passport.bilibili.com/x/safecenter/sec/verify
form data:
verify_type=sms&tmp_code=imtmptk&captcha_key=验证码key&code=验证码&csrf=***
form data:
source=main_web&code=交换代码&go_url=https:%2F%2Fpassport.bilibili.com%2Fpc%2Fpassport%2Frisk%2FsecTip%3Fgourl%3Dhttps%253A%252F%252Fwww.bilibili.com%252F%26bind_tel%3D1&csrf=***
The text was updated successfully, but these errors were encountered: