mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
update
This commit is contained in:
parent
acdfd6f1ff
commit
3f79c3c526
6
app.js
6
app.js
@ -1,9 +1,6 @@
|
|||||||
import request from 'request'
|
import request from 'request'
|
||||||
function deepCopy(obj) {
|
const deepCopy=(obj)=>JSON.parse(JSON.stringify(obj))
|
||||||
return JSON.parse(JSON.stringify(obj));
|
|
||||||
}
|
|
||||||
const origin = 'http://music.163.com'
|
const origin = 'http://music.163.com'
|
||||||
|
|
||||||
let globalOption = {
|
let globalOption = {
|
||||||
headers: {
|
headers: {
|
||||||
'Origin': origin,
|
'Origin': origin,
|
||||||
@ -11,7 +8,6 @@ let globalOption = {
|
|||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let api = {
|
let api = {
|
||||||
search: (name = null,callback=null, limit = 3, offset = 0) => {
|
search: (name = null,callback=null, limit = 3, offset = 0) => {
|
||||||
let option = deepCopy(globalOption);
|
let option = deepCopy(globalOption);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user