🐞 fix: 修复饼干

This commit is contained in:
秋刀鱼 2024-11-07 14:15:34 +08:00
parent 729a84d3f3
commit bdfe607b95

View File

@ -263,7 +263,7 @@ export class songRequest extends plugin {
axios.get(pickSongUrl, { axios.get(pickSongUrl, {
headers: { headers: {
"User-Agent": COMMON_USER_AGENT, "User-Agent": COMMON_USER_AGENT,
// "Cookie": this.neteaseCookie "Cookie": this.neteaseCookie
}, },
}).then(async resp => { }).then(async resp => {
// 国内解决方案替换API后这里也需要修改 // 国内解决方案替换API后这里也需要修改
@ -326,7 +326,7 @@ export class songRequest extends plugin {
'musicType': typelist 'musicType': typelist
} }
// 一般这个情况是VIP歌曲 (如果没有url或者是国内,公用接口暂时不可用必须自建并且ck可用状态才能进行高质量解析) // 一般这个情况是VIP歌曲 (如果没有url或者是国内,公用接口暂时不可用必须自建并且ck可用状态才能进行高质量解析)
if (!isCkExpired || this.useLocalNeteaseAPI || url == null) { if (!isCkExpired || url == null) {
url = await this.musicTempApi(e, musicInfo, title); url = await this.musicTempApi(e, musicInfo, title);
} else { } else {
// 拥有ck并且有效直接进行解析 // 拥有ck并且有效直接进行解析