NeteaseCloudMusicApi
Advanced tools
Comparing version 2.6.1 to 2.6.2
# 更新日志 | ||
### 2.6.2 | 2017.7.16 | ||
修复垃圾桶接口 | ||
### 2.6.1 | 2017.7.16 | ||
@@ -3,0 +6,0 @@ 修复红心接口 |
{ | ||
"name": "NeteaseCloudMusicApi", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "网易云音乐 NodeJS 版 API", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,16 +0,18 @@ | ||
const express = require("express") | ||
const express = require('express') | ||
const router = express() | ||
const { createWebAPIRequest } = require("../util/util") | ||
const { createWebAPIRequest } = require('../util/util') | ||
router.get("/", (req, res) => { | ||
router.get('/', (req, res) => { | ||
const cookie = req.get('Cookie') ? req.get('Cookie') : '' | ||
const songId = req.query.id | ||
const alg = 'RT' | ||
const time = req.query.time || 25 | ||
const data = { | ||
"csrf_token": "" | ||
csrf_token: '', | ||
songId | ||
} | ||
const songid = req.query.id | ||
const alg = "RT" | ||
const time = req.query.time || 25 | ||
createWebAPIRequest( | ||
'music.163.com', | ||
`/weapi/radio/trash/add?alg=${alg}&songId=${songid}&time=${time}`, | ||
`/weapi/radio/trash/add?alg=${alg}&songId=${songId}&time=${time}`, | ||
'POST', | ||
@@ -24,4 +26,2 @@ data, | ||
module.exports = router | ||
module.exports = router |
75729
2337