修复歌单详情列表失效的问题 #380 #381

This commit is contained in:
binaryify
2018-11-21 11:28:00 +08:00
parent 4b735daa41
commit f3eb7df160
108 changed files with 111 additions and 108 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ const createRequest = (method, url, data, options) => {
if (method.toUpperCase() == 'POST')
headers['Content-Type'] = 'application/x-www-form-urlencoded'
if (url.includes('music.163.com'))
headers['Referer'] = 'http://music.163.com'
headers['Referer'] = 'https://music.163.com'
// headers['X-Real-IP'] = '118.88.88.88'
if (typeof options.cookie === 'object')
@@ -63,7 +63,7 @@ const createRequest = (method, url, data, options) => {
})
headers['User-Agent'] =
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
url = 'http://music.163.com/api/linux/forward'
url = 'https://music.163.com/api/linux/forward'
}
const answer = { status: 500, body: {}, cookie: [] }