From d5250e859050e0c277c07749adab86b3bbfb0591 Mon Sep 17 00:00:00 2001 From: Aki Nazuki <43605695+akinazuki@users.noreply.github.com> Date: Fri, 6 May 2022 09:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81=E7=BD=97?= =?UTF-8?q?=E9=A9=AC=E9=9F=B3=E6=AD=8C=E8=AF=8D=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/lyric.js | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/module/lyric.js b/module/lyric.js index c3e8721..a42d341 100644 --- a/module/lyric.js +++ b/module/lyric.js @@ -1,17 +1,24 @@ // 歌词 module.exports = (query, request) => { - query.cookie.os = 'pc' + query.cookie.os = 'ios' + const data = { id: query.id, - lv: -1, - kv: -1, - tv: -1, + tv: '5', + lv: '4', + rv: '4', + kv: '4', } - return request('POST', `https://music.163.com/api/song/lyric`, data, { - crypto: 'api', - cookie: query.cookie, - proxy: query.proxy, - realIP: query.realIP, - }) + return request( + 'POST', + `https://music.163.com/api/song/lyric?_nmclfl=1`, + data, + { + crypto: 'api', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) }