fix: 解决某些歌曲(如已购专辑)能播放但仍然变灰的问题 (#1173)

This commit is contained in:
chen310 2022-01-04 18:35:31 +08:00 committed by GitHub
parent f9ad6aef05
commit 98ac9fd1ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ export function isTrackPlayable(track) {
playable: true, playable: true,
reason: '', reason: '',
}; };
if (track?.privilege?.pl > 0) {
return result;
}
// cloud storage judgement logic // cloud storage judgement logic
if (isAccountLoggedIn() && track?.privilege?.cs) { if (isAccountLoggedIn() && track?.privilege?.cs) {
return result; return result;