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

获取音乐url接口不返回url信息 #40

Open
poggioxk opened this issue Nov 18, 2024 · 22 comments
Open

获取音乐url接口不返回url信息 #40

poggioxk opened this issue Nov 18, 2024 · 22 comments

Comments

@poggioxk
Copy link

/song/url?hash=27175B47CE28A47C98A3035C90E61742
{
"priv_status": 0,
"hash_offset": {
"start_byte": 0,
"end_ms": 110700,
"end_byte": 1771376,
"file_type": 0,
"start_ms": 50700,
"offset_hash": "2C0918880E25237470872EDA5080291F"
},
"trans_param": {
"classmap": {
"attr0": 235016200
},
"display": 0,
"display_rate": 0
},
"status": 2,
"fail_process": [
"pkg",
"buy"
]
}

@starfish122
Copy link

你是用打包好的exe吗,用项目源码不会这样

@poggioxk
Copy link
Author

用的源码的,用vscode启动的

@starfish122
Copy link

用的源码的,用vscode启动的

没登录,或者没vip

@poggioxk
Copy link
Author

登录了,有打印传过去的token信息

@poggioxk
Copy link
Author

你现在还可以使用吗,你可以测试一下

@poggioxk
Copy link
Author

不知道和node版本有没有关系,我是高版本的node

@starfish122
Copy link

你试试能不能获得非VIP歌曲url

@poggioxk
Copy link
Author

不行现在搜索接口都报错了

@poggioxk
Copy link
Author

http://192.168.10.150:3000/search?keywords=三国杀
{
"status": 0,
"error_code": 152,
"error_msg": "Parameter Error",
"data": {
"pagesize": 30,
"page": 1,
"from": 0,
"size": 0,
"AlgPath": "",
"total": 0,
"correctiontype": 0,
"correctionforce": 0,
"correctiontip": "",
"istag": 0,
"isshareresult": 0,
"istagresult": 0,
"allowerr": 0,
"sectag_info": {
"is_sectag": 0
},
"lists": []
}
}

@starfish122
Copy link

你先试试刷新登录,/login/token?token=xxx&userid=xxx,不行的话就重新登录

@poggioxk
Copy link
Author

1731988460766

@poggioxk
Copy link
Author

这个地方我用默认的

@poggioxk
Copy link
Author

image
两个文件我都存在,lite和空都试过了重新登录了不行。搜索接口昨天是可以的

@poggioxk
Copy link
Author

搜索推荐接口可以调用有数据

@starfish122
Copy link

你用什么发的请求,文档里有说如果是跨域请求 , 请在所有请求带上 xhrFields: { withCredentials: true } (axios 为 withCredentials: true, Fetch API 为 fetch(url, { credentials: 'include' })), 或直接手动传入 cookie。

@poggioxk
Copy link
Author

我用postman请求的接口

@starfish122
Copy link

那我不清楚了,要不你下载那个打包好的exe试试

@poggioxk
Copy link
Author

image
的确是跨域问题,search接口好了但是url接口还是获取不到数据

@poggioxk
Copy link
Author

是酷狗概念版吗,我刚刚开的概念版vip。但是登录后"is_vip": 0,等于0

@starfish122
Copy link

是酷狗概念版吗,我刚刚开的概念版vip。但是登录后"is_vip": 0,等于0
“busi_vip”内的“is_vip”

@poggioxk
Copy link
Author

找到问题了,谢谢大佬的耐心指导,他这个启动的时候是localhoust,用localhoust访问就号了

@ywd1988
Copy link

ywd1988 commented Dec 11, 2024

找到问题了,谢谢大佬的耐心指导,他这个启动的时候是localhoust,用localhoust访问就号了

兄弟在吗,我的也是这个问题,你是咋解决的?

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

No branches or pull requests

3 participants