提交 3f79c3c5 编写于 作者: zhuangtongfa's avatar zhuangtongfa

update

上级 acdfd6f1
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 = { ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册