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

救命,为什么有的歌曲信息是不包括歌曲持续时长的字段,有的歌才有这个字段 #27

Open
SUN7700 opened this issue Apr 12, 2022 · 5 comments

Comments

@SUN7700
Copy link

SUN7700 commented Apr 12, 2022

image
image

@SUN7700
Copy link
Author

SUN7700 commented Apr 12, 2022

救命救命!!自己看了几个小时完全0进展

@jsososo
Copy link
Owner

jsososo commented Apr 13, 2022

src/util 那里,getBatchSong 这个 duration 是通过 length 字符串计算得到的,可以在那里看下返回值,这里一下子不确定

@SUN7700
Copy link
Author

SUN7700 commented Apr 13, 2022

下面是我的调试之路,getBatchSong我也看过了,但是好像里面请求的数据songs.item也是为空,然后最终返回的数据也是空。

image


image


image

@jsososo
Copy link
Owner

jsososo commented Apr 13, 2022 via email

@SUN7700
Copy link
Author

SUN7700 commented Apr 13, 2022

懂了,难怪返回304,解决了,添加下面那条就好了,虽然还不是特别清楚你的代码,但问题应该解决了
image

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

2 participants