mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-22 15:41:23 +08:00
+2
-9
@@ -1,3 +1,4 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
// 发送与删除评论
|
||||
|
||||
module.exports = (query, request) => {
|
||||
@@ -7,15 +8,7 @@ module.exports = (query, request) => {
|
||||
0: 'delete',
|
||||
2: 'reply',
|
||||
}[query.t]
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
6: 'A_EV_2_', // 动态
|
||||
}[query.type]
|
||||
query.type = resourceTypeMap[query.type]
|
||||
const data = {
|
||||
threadId: query.type + query.id,
|
||||
}
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
module.exports = (query, request) => {
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
}[query.type]
|
||||
query.type = resourceTypeMap[query.type]
|
||||
const data = {
|
||||
parentCommentId: query.parentCommentId,
|
||||
threadId: query.type + query.id,
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
// 热门评论
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
}[query.type]
|
||||
query.type = resourceTypeMap[query.type]
|
||||
const data = {
|
||||
rid: query.id,
|
||||
limit: query.limit || 20,
|
||||
|
||||
@@ -1,24 +1,17 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'ios'
|
||||
query.cookie.appver = '7.3.27'
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
6: 'A_EV_2_', // 动态
|
||||
}[query.type]
|
||||
const threadId = query.type + query.id
|
||||
query.type = resourceTypeMap[query.type || 0]
|
||||
const threadId = query.type + query.sid
|
||||
const data = {
|
||||
targetUserId: query.uid,
|
||||
commentId: query.cid,
|
||||
cursor: '-1',
|
||||
cursor: query.cursor || '-1',
|
||||
threadId: threadId,
|
||||
pageNo: 1,
|
||||
idCursor: -1,
|
||||
pageSize: 100,
|
||||
pageNo: query.page || 1,
|
||||
idCursor: query.idCursor || -1,
|
||||
pageSize: query.pageSize || 100,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
// 点赞与取消点赞评论
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
query.t = query.t == 1 ? 'like' : 'unlike'
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
6: 'A_EV_2_', // 动态
|
||||
}[query.type]
|
||||
query.type = resourceTypeMap[query.type]
|
||||
const data = {
|
||||
threadId: query.type + query.id,
|
||||
commentId: query.cid,
|
||||
|
||||
+3
-10
@@ -1,21 +1,14 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
// 评论
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
6: 'A_EV_2_', // 动态
|
||||
}[query.type]
|
||||
query.type = resourceTypeMap[query.type]
|
||||
const threadId = query.type + query.id
|
||||
const pageSize = query.pageSize || 20
|
||||
const pageNo = query.pageNo || 1
|
||||
const data = {
|
||||
threadId: threadId, //'R_SO_4_863481066',
|
||||
threadId: threadId,
|
||||
pageNo,
|
||||
showInner: query.showInner || true,
|
||||
pageSize,
|
||||
|
||||
+3
-10
@@ -1,16 +1,9 @@
|
||||
const { resourceTypeMap } = require('../util/config.json')
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'ios'
|
||||
query.cookie.appver = '7.3.27'
|
||||
query.type = {
|
||||
0: 'R_SO_4_', // 歌曲
|
||||
1: 'R_MV_5_', // MV
|
||||
2: 'A_PL_0_', // 歌单
|
||||
3: 'R_AL_3_', // 专辑
|
||||
4: 'A_DJ_1_', // 电台,
|
||||
5: 'R_VI_62_', // 视频
|
||||
6: 'A_EV_2_', // 动态
|
||||
}[query.type]
|
||||
const threadId = query.type + query.id
|
||||
query.type = resourceTypeMap[query.type || 0]
|
||||
const threadId = query.type + query.sid
|
||||
const data = {
|
||||
targetUserId: query.uid,
|
||||
commentId: query.cid,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// 收藏的专栏
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
limit: query.limit || 50,
|
||||
offset: query.offset || 0,
|
||||
total: true,
|
||||
}
|
||||
return request('POST', `https://music.163.com/api/topic/sublist`, data, {
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user