修复使用post请求取消喜欢音乐会失败的问题 #1024, 新增抱一抱评论和评论抱一抱列表接口 #1016, 新增收藏的专栏接口 #1026

This commit is contained in:
binaryify
2020-11-14 21:23:22 +08:00
parent 99ec5bf065
commit 40185476f2
14 changed files with 143 additions and 70 deletions

View File

@ -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,