GithubHelp home page GithubHelp logo

登陆失败~ about musicbox HOT 6 CLOSED

darknessomi avatar darknessomi commented on June 17, 2024
登陆失败~

from musicbox.

Comments (6)

darknessomi avatar darknessomi commented on June 17, 2024

支持手机号登录

from musicbox.

Catofes avatar Catofes commented on June 17, 2024

报错log:(把密码用×代替了),同时在报错的地方上面加了一句 pirnt data 我去新建一个帐号试试看

               请输入登录信息, e.g: [email protected] 123456




               18600200××× ×××

[{u'account': {u'userName': u'0_m18600200×××@163.com', u'status': -10, u'anonimousUser': False, u'whitelistAuthority': 0, u'baoyueVersion': 0, u'ban': 0, u'type': 0, u'id': 48727681, u'donateVersion': 0}, u'code': 200, u'bindings': [{u'expiresIn': 2147483647, u'tokenJsonStr': u'{"email":"m18600200×××@163.com"}', u'url': u'', u'type': 0, u'userId': 48727681, u'refreshTime': 0, u'expired': False, u'id': 24920300}], u'loginType': 0}, ['18600200×××', '×××']]
Traceback (most recent call last):
File "/usr/bin/musicbox", line 9, in
load_entry_point('NetEase-MusicBox==0.1.0.1.2', 'console_scripts', 'musicbox')()
File "/usr/lib/python2.7/site-packages/NetEase_MusicBox-0.1.0.1.2-py2.7.egg/src/init.py", line 11, in start
Menu().start()
File "/usr/lib/python2.7/site-packages/NetEase_MusicBox-0.1.0.1.2-py2.7.egg/src/menu.py", line 151, in start
self.dispatch_enter(idx)
File "/usr/lib/python2.7/site-packages/NetEase_MusicBox-0.1.0.1.2-py2.7.egg/src/menu.py", line 278, in dispatch_enter
self.choice_channel(idx)
File "/usr/lib/python2.7/site-packages/NetEase_MusicBox-0.1.0.1.2-py2.7.egg/src/menu.py", line 388, in choice_channel
self.username = user_info['profile']['nickname']
KeyError: 'profile'

from musicbox.

Catofes avatar Catofes commented on June 17, 2024

找到问题的来源了。不过我觉得是网易sb了。

网易似乎采取了一个奇怪的机制处理帐号系统。(大部分为推测)

当你新使用一个手机号注册账户之后,会优先生成一个用户名是手机号的网易云音乐帐号,同时生成了一个 m+手机号@163.com 的网易通行证帐号。

问题时这两个帐号之间是独立的。

即你可以以手机登陆,也可以用通行证登陆,同时这两个帐号对应着不同的网易云音乐帐号。两个帐号的密码都是独立的(我就说我登陆的时候很奇怪呢,为啥和网页版的密码不一样,因为我改过手机号的密码)

猜测如果先注册网易云音乐再绑定手机就没问题了,这样只有一个帐号同时关联了手机这个登陆名。

所以说 http://music.163.com/api/login 登陆只是针对鱼网易通行证,输入帐号是手机号的话登陆的是m+手机号@163.com 的账户而不是手机账户。

我修改 http://music.163.com/api/login -> http://music.163.com/api/login/cellphone 同时把 data中的username改为phone就可以正常使用了。 因而建议对于登陆还是做一优化区分一下手机登陆和通行证登陆

btw 测试表明163貌似支持https登陆,改成https如何?

from musicbox.

darknessomi avatar darknessomi commented on June 17, 2024

我的账号最先是一个163邮箱网易通行证账号,而后绑定的手机,这样登录,两种方法都可以登录,并且数据是联通的。而且当你绑定手机手机的同时还会生成一个手机号@邮箱.com的账号,这个也是可以使用的。所以,个人认为网易的账号机制是:手机号=邮箱=手机邮箱,这三个号应该在网易后台对应的是同一个UUID 才对,至于http://music.163.com/api/login/cellphone,还在测试。
有改成 https 的打算,不过感觉没必要,毕竟感觉网易本身就不靠谱。

from musicbox.

Catofes avatar Catofes commented on June 17, 2024

对~ 这是绑定手机的结果,三个帐号相互关联起来了。。不过貌似直接用手机注册就呵呵了。。。谁晓得呢。

cellphone回来我发个pull request

from musicbox.

darknessomi avatar darknessomi commented on June 17, 2024

用正则搞了个自动判定。。。。

from musicbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.