Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

登录组件问题:“本次登录环境存在风险, 需使用手机号进行验证或绑定” #339

@xuan25

Description

@xuan25

错误现象

版本:commit 99dfb53

登录时出现未处理的异常,控制台输出为:

# 输入帐号: [hide]
# 输入密码: [hide]
[2021-06-09 17:33:30] [login:154]         [Error]   登录失败,错误信息为:{'ts': 1623256412, 'code': 0, 'data': {'status': 2, 'url': 'https://passport.bilibili.com/account/mobile/security/managephone/phone/verify?tmp_token=<hide>&requestId=<hide>&source=risk', 'message': '本次登录环境存在风险, 需使用手机号进行验证或绑定'}}

报错已进行匿名化处理。

触发条件未知,目前在我的设备上必定触发。

此时由于需要进一步操作而不是报错,code0,但data.status2。希望可以对此状态进行考虑。

更多信息

在web端中,打开json提供的目标网页,需要获取并输入手机验证码以登录。
之后页面会通过GET https://passport.bilibili.com/web/sso/exchange_cookie?code=<tmp_token>设置浏览器cookie,但相较于app端api缺少token的信息。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions