Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_66418769
NeteaseCloudMusicApi
提交
80961900
N
NeteaseCloudMusicApi
项目概览
m0_66418769
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
80961900
编写于
11月 20, 2021
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复新版评论返回参数错误问题 #1393
上级
9f0ea1da
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
53 addition
and
7 deletion
+53
-7
CHANGELOG.MD
CHANGELOG.MD
+10
-1
docs/README.md
docs/README.md
+2
-2
interface.d.ts
interface.d.ts
+20
-0
module/comment_new.js
module/comment_new.js
+20
-3
package.json
package.json
+1
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
80961900
# 更新日志
### 4.1.0 | 2021.11.20
-
修复新版评论返回参数错误问题
[
#1393
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1393
)
[
#1377
]
(https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1377)
-
新增获取歌单所有歌曲的 API
[
#1397
](
https://github.com/Binaryify/NeteaseCloudMusicApi/pull/1397
)
-
新增发送文本动态接口, 获取客户端歌曲下载链接 url 接口
[
#1391
](
https://github.com/Binaryify/NeteaseCloudMusicApi/pull/1391
)
### 4.0.23 | 2021.9.15
-
修复文件上传设置问题
[
#1355
](
https://github.com/Binaryify/NeteaseCloudMusicApi/pull/1355
)
-
修复
interface
不完整问题
[
#1356
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1356
)
-
修复
interface
不完整问题
[
#1356
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1356
)
### 4.0.22 | 2021.9.08
...
...
docs/README.md
浏览文件 @
80961900
...
...
@@ -1748,7 +1748,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
`pageSize`
:分页参数,每页多少条数据,默认20
`sortType`
: 排序方式,
1:按推荐排序,2:按热度排序,
3:按时间排序
`sortType`
: 排序方式,
1:按推荐排序, 2:按热度排序,
3:按时间排序
`cursor`
: 当
`sortType`
为3时且页数不是第一页时需传入,值为上一条数据的time
...
...
@@ -1765,7 +1765,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
`cid`
: 评论 id
`t`
: 是否点赞 ,1 为点赞 ,0 为取消点赞
`t`
: 是否点赞 ,
1 为点赞 ,0 为取消点赞
`type`
: 数字 , 资源类型 , 对应歌曲 , mv, 专辑 , 歌单 , 电台, 视频对应以下类型
...
...
interface.d.ts
浏览文件 @
80961900
...
...
@@ -1534,3 +1534,23 @@ export function musician_cloudbean_obtain(
export
function
vip_info
(
params
:
RequestBaseConfig
):
Promise
<
Response
>
export
function
musician_sign
(
params
:
RequestBaseConfig
):
Promise
<
Response
>
export
function
song_download_url
(
params
:
{
id
:
number
|
string
br
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
send_event_text
(
params
:
{
msg
:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
export
function
playlist_track_all
(
params
:
{
id
:
number
|
string
s
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
module/comment_new.js
浏览文件 @
80961900
...
...
@@ -7,14 +7,31 @@ module.exports = (query, request) => {
const
threadId
=
query
.
type
+
query
.
id
const
pageSize
=
query
.
pageSize
||
20
const
pageNo
=
query
.
pageNo
||
1
let
sortType
=
Number
(
query
.
sortType
)
||
99
if
(
sortType
===
1
)
{
sortType
=
99
}
let
cursor
=
''
switch
(
sortType
)
{
case
99
:
cursor
=
(
pageNo
-
1
)
*
pageSize
break
case
2
:
cursor
=
'
normalHot#
'
+
(
pageNo
-
1
)
*
pageSize
break
case
3
:
cursor
=
query
.
cursor
||
'
0
'
break
default
:
break
}
const
data
=
{
threadId
:
threadId
,
pageNo
,
showInner
:
query
.
showInner
||
true
,
pageSize
,
cursor
:
+
query
.
sortType
===
3
?
query
.
cursor
||
'
0
'
:
(
pageNo
-
1
)
*
pageSize
,
sortType
:
query
.
sortType
||
1
,
//1:按推荐排序,2:按热度排序,3:按时间排序
cursor
:
cursor
,
sortType
:
sortType
,
//99:按推荐排序,2:按热度排序,3:按时间排序
}
return
request
(
'
POST
'
,
...
...
package.json
浏览文件 @
80961900
{
"name"
:
"NeteaseCloudMusicApi"
,
"version"
:
"4.
0.23
"
,
"version"
:
"4.
1.0
"
,
"description"
:
"网易云音乐 NodeJS 版 API"
,
"scripts"
:
{
"start"
:
"node app.js"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录