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'
|
||||
function deepCopy(obj) {
|
||||
return JSON.parse(JSON.stringify(obj));
|
||||
}
|
||||
const deepCopy=(obj)=>JSON.parse(JSON.stringify(obj))
|
||||
const origin = 'http://music.163.com'
|
||||
|
||||
let globalOption = {
|
||||
headers: {
|
||||
'Origin': origin,
|
||||
@ -11,7 +8,6 @@ let globalOption = {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
}
|
||||
|
||||
let api = {
|
||||
search: (name = null,callback=null, limit = 3, offset = 0) => {
|
||||
let option = deepCopy(globalOption);
|
||||
|
Loading…
x
Reference in New Issue
Block a user