This commit is contained in:
binaryify 2016-06-27 23:21:29 +08:00
parent acdfd6f1ff
commit 3f79c3c526

6
app.js
View File

@ -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);