Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main: migrate login api to eapi #183

Merged
merged 4 commits into from
Oct 29, 2024
Merged

main: migrate login api to eapi #183

merged 4 commits into from
Oct 29, 2024

Conversation

hatateaya
Copy link
Contributor

@hatateaya hatateaya commented Oct 27, 2024

fix #182

  1. 参考HyPlayer的 Commit 把账号密码登录API迁移到了EAPI以规避网易云对网页端登录API的风控
  2. 更新了发送EAPI请求时的Cookie中的appver项,以消除登录时的版本过旧请更新的提示

上述更改后可使用账号密码正常登录

@hatateaya hatateaya changed the title main: migrate login api to eapi main: migrate login api to eapi and add UnblockNeteaseMusic support Oct 27, 2024
@rocka
Copy link
Member

rocka commented Oct 27, 2024

感谢!没想到现在还有人在关注这个项目,泪目

如果 login 换成了 eapi ,那 refresh login 和 logout 是不是也换成 eapi 会比较好

另外提个小建议, eapi login 和 unblock 最好可以分成两个 PR ,然后可以给 unblock 加一个设置决定是否启用(如果觉得麻烦的话我来做也可以)

@hatateaya
Copy link
Contributor Author

hatateaya commented Oct 27, 2024

改的接口是参考HyPlayer那边改的。登出的接口HyPlayer那边没改,所以不知道该怎么改。不过现在的登出接口似乎也能用

更新登录状态的接口HyPlayer那边好像没用,或许可能在EAPI下是不必要的?如果是那样的话去掉就好了。或者也可以改成记住账号和密码md5,登录失效的时候自动尝试再登录一遍这样,如果您觉得合适的话这边尝试去弄一下

分PR和加设置这边会尽快弄的

@rocka
Copy link
Member

rocka commented Oct 27, 2024

refresh login 和 logout 的接口我之前抓过,可以这次顺便加上(其实就是把 postW 换成 postE , url 和参数都没有变)

@hatateaya hatateaya force-pushed the master branch 2 times, most recently from 243f85d to 5ec1e31 Compare October 28, 2024 04:40
@hatateaya hatateaya changed the title main: migrate login api to eapi and add UnblockNeteaseMusic support main: migrate login api to eapi Oct 28, 2024
@rocka rocka merged commit 8c64726 into Rocket1184:master Oct 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

账号被风控
2 participants