🔧 refactor:仅在开启自建解析API的情况下可进行高音质解析

This commit is contained in:
秋刀鱼 2024-10-16 11:14:55 +08:00
parent 59d2e272c5
commit bdd382a3d9

View File

@ -1685,8 +1685,8 @@ async neteaseStatus(e, reck) {
const song = res.data.songs[0]; const song = res.data.songs[0];
return song?.al?.picUrl return song?.al?.picUrl
}); });
// 一般这个情况是VIP歌曲 (如果没有url或者是国内,没有ck的走临时接口) // 一般这个情况是VIP歌曲 (如果没有url或者是国内,公用接口暂时不可用必须自建并且ck可用状态才能进行高质量解析)
if (!isCkExpired || url == null) { if (!isCkExpired || !this.useLocalNeteaseAPI || url == null) {
url = await this.musicTempApi(e, title, "网易云音乐"); url = await this.musicTempApi(e, title, "网易云音乐");
} else { } else {
// 拥有ck并且有效直接进行解析 // 拥有ck并且有效直接进行解析