songUrl method
歌曲地址
ids
歌曲id数组
level
standard, exhigh, lossless, hires, jyeffect(高清环绕声), sky(沉浸环绕声), jymaster(超清母带) 进行音质判断
encodeType
编码类型 默认 flac
Implementation
Future<SongUrlEntity?> songUrl(
{required List<String> ids, String level = 'standard', String encodeType = 'flac'}) async {
final data = {
'ids': ids,
'level': level,
'encodeType': encodeType,
'immerseType': level == 'sky' ? 'c51' : null
};
return await BujuanMusicManager().post<SongUrlEntity>(url: Api.songUrl, data: data);
}