mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
'update'
This commit is contained in:
parent
2cf9868494
commit
07c5933e78
@ -7,7 +7,8 @@
|
|||||||
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/david/binaryify/NeteaseCloudMusicApi.svg" alt="devDependencies" ></a>
|
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/david/binaryify/NeteaseCloudMusicApi.svg" alt="devDependencies" ></a>
|
||||||
<a href="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi"><img src="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi/badges/gpa.svg" /></a>
|
<a href="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi"><img src="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi/badges/gpa.svg" /></a>
|
||||||
<a href="https://travis-ci.org/Binaryify/NeteaseCloudMusicApi"><img src="https://api.travis-ci.org/Binaryify/NeteaseCloudMusicApi.svg?branch=master" /></a>
|
<a href="https://travis-ci.org/Binaryify/NeteaseCloudMusicApi"><img src="https://api.travis-ci.org/Binaryify/NeteaseCloudMusicApi.svg?branch=master" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Start
|
## Start
|
||||||
|
@ -5,7 +5,7 @@ import { deepCopy } from '../util'
|
|||||||
const getPlaylists = (id, callback) => {
|
const getPlaylists = (id, callback) => {
|
||||||
const option = deepCopy(globalOption)
|
const option = deepCopy(globalOption)
|
||||||
const url = `${origin}/api/playlist/detail?id=${id}`
|
const url = `${origin}/api/playlist/detail?id=${id}`
|
||||||
const method = 'get'
|
const method = 'GET'
|
||||||
Object.assign(option, {url, method})
|
Object.assign(option, {url, method})
|
||||||
request(option, (err, res, body) => {
|
request(option, (err, res, body) => {
|
||||||
if(!err && res.statusCode == 200) {
|
if(!err && res.statusCode == 200) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user