Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

为甚么登录后首页数据变少了? #1217

Closed
wudeh opened this issue May 1, 2021 · 12 comments
Closed

为甚么登录后首页数据变少了? #1217

wudeh opened this issue May 1, 2021 · 12 comments

Comments

@wudeh
Copy link

wudeh commented May 1, 2021

环境

  • 系统/平台: win10

  • nodejs 版本: v14.15.1

  • API版本: <4.0.11>

出现问题

首页不带cookie返回11组数组数据
不带cookie
带cookie只返回4组数组数据,还有hasMore变成true
带cookie
想问下这是正常的吗?还是说还有除了refresh以外的参数可以控制?
如果是正常的话那是不是首页登录后要调一次不带cookie的请求和一次带cookie的请求,来组装所有数据啊?

期待效果

现在效果:登录后首页返回数据比不登录返回的数据少
期待效果:登录后首页返回的数据和不登录返回的数据一样多

@wudeh wudeh closed this as completed May 1, 2021
@wudeh wudeh changed the title <不按照模版格式或者删除模版信息将得不到处理,确认看完了调用前须知再发 issues> 为甚么登录后首页数据变少了? May 1, 2021
@wudeh wudeh reopened this May 1, 2021
@Binaryify
Copy link
Owner

Binaryify commented May 1, 2021

晚点更新下,需要加多个cursor参数

@Binaryify
Copy link
Owner

新版本加了cursor参数了

wudeh added a commit to wudeh/NeteaseCloudMusicApi that referenced this issue May 1, 2021
首页-发现接口增加 cursor 参数,refresh默认设为false Binaryify#1217
@wudeh
Copy link
Author

wudeh commented May 1, 2021

感谢大佬!!

ZhaoTonggang added a commit to ZhaoTonggang/NeteaseCloudMusicApi that referenced this issue May 2, 2021
* 新增云盘歌曲信息匹配纠正接口 Binaryify#1212

* update docs

* update docs

* 首页-发现接口增加 cursor 参数,refresh默认设为false Binaryify#1217

Co-authored-by: binaryify <[email protected]>
Assone added a commit to Assone/NeteaseCloudMusicApi that referenced this issue May 4, 2021
首页-发现接口增加 cursor 参数,refresh默认设为false Binaryify#1217
@cvilia
Copy link

cvilia commented May 14, 2021

感谢大佬!!

兄弟这个上一条数据的cursor是啥啊,我试了很多都不行

@wudeh
Copy link
Author

wudeh commented May 15, 2021

感谢大佬!!

兄弟这个上一条数据的cursor是啥啊,我试了很多都不行

@wudeh wudeh closed this as completed May 15, 2021
@wudeh wudeh reopened this May 15, 2021
@wudeh
Copy link
Author

wudeh commented May 15, 2021

感谢大佬!!

兄弟这个上一条数据的cursor是啥啊,我试了很多都不行

你要确保自己拿到cookie,这时候请求首页返回的cursor中就会有值了

@cvilia
Copy link

cvilia commented May 15, 2021

感谢大佬!!

兄弟这个上一条数据的cursor是啥啊,我试了很多都不行

你要确保自己拿到cookie,这时候请求首页返回的cursor中就会有值了

第一次请求首页数据的时候是有返回cursor的,但是数据特别长,就是下面这条数据,很郁闷
"cursor": "{"offset":5,"blockCodeOrderList":["HOMEPAGE_BANNER","HOMEPAGE_NEW_USER_WELCOME","HOMEPAGE_BLOCK_PLAYLIST_RCMD","HOMEPAGE_BLOCK_STYLE_RCMD","HOMEPAGE_MUSIC_MLOG","HOMEPAGE_BLOCK_MGC_PLAYLIST","HOMEPAGE_MUSIC_CALENDAR","HOMEPAGE_BLOCK_LISTEN_LIVE","HOMEPAGE_BLOCK_OFFICIAL_PLAYLIST","HOMEPAGE_BLOCK_NEW_ALBUM_NEW_SONG","HOMEPAGE_BLOCK_TOPLIST","HOMEPAGE_VOICELIST_RCMD","HOMEPAGE_BLOCK_FUN_CLUB","HOMEPAGE_PODCAST24","HOMEPAGE_BLOCK_VIDEO_PLAYLIST"]}",

@wudeh
Copy link
Author

wudeh commented May 15, 2021

感谢大佬!!

兄弟这个上一条数据的cursor是啥啊,我试了很多都不行

你要确保自己拿到cookie,这时候请求首页返回的cursor中就会有值了

第一次请求首页数据的时候是有返回cursor的,但是数据特别长,就是下面这条数据,很郁闷
"cursor": "{"offset":5,"blockCodeOrderList":["HOMEPAGE_BANNER","HOMEPAGE_NEW_USER_WELCOME","HOMEPAGE_BLOCK_PLAYLIST_RCMD","HOMEPAGE_BLOCK_STYLE_RCMD","HOMEPAGE_MUSIC_MLOG","HOMEPAGE_BLOCK_MGC_PLAYLIST","HOMEPAGE_MUSIC_CALENDAR","HOMEPAGE_BLOCK_LISTEN_LIVE","HOMEPAGE_BLOCK_OFFICIAL_PLAYLIST","HOMEPAGE_BLOCK_NEW_ALBUM_NEW_SONG","HOMEPAGE_BLOCK_TOPLIST","HOMEPAGE_VOICELIST_RCMD","HOMEPAGE_BLOCK_FUN_CLUB","HOMEPAGE_PODCAST24","HOMEPAGE_BLOCK_VIDEO_PLAYLIST"]}",

对啊,就是这个数据

@wudeh wudeh closed this as completed May 15, 2021
@wudeh wudeh reopened this May 15, 2021
@cvilia
Copy link

cvilia commented May 15, 2021

穿错了值,郁闷

@Binaryify
Copy link
Owner

@cvilia 那个cursor就是这样的,不知道网易为啥这么设计

@cvilia
Copy link

cvilia commented May 17, 2021

@cvilia 那个cursor就是这样的,不知道网易为啥这么设计

收到大佬回复

@ht-echo
Copy link

ht-echo commented Jun 17, 2021

cursor传过去是会让返回的数据变长吗?我传了半天反应都没有...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants