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 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=BD=97=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 c3e872149f7..a42d3415020 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, + }, + ) } From 08334d85d87fa28bcbf798c82bb0663b48b437b3 Mon Sep 17 00:00:00 2001 From: Aki Nazuki <43605695+akinazuki@users.noreply.github.com> Date: Fri, 6 May 2022 09:56:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=BD=97=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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/lyric.js b/module/lyric.js index a42d3415020..b9bec0ae99a 100644 --- a/module/lyric.js +++ b/module/lyric.js @@ -5,10 +5,10 @@ module.exports = (query, request) => { const data = { id: query.id, - tv: '5', - lv: '4', - rv: '4', - kv: '4', + tv: -1, + lv: -1, + rv: -1, + kv: -1, } return request( 'POST',