fix(common/isTrackPlayable): add cloud storage judgement logic (#85 #84)

master
njzy 4 years ago committed by GitHub
parent 1374fbd450
commit 39e461cd5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,10 @@ export function isTrackPlayable(track) {
playable: true,
reason: "",
};
// cloud storage judgement logic
if (isAccountLoggedIn() && track?.privilege?.cs) {
return result;
}
if (track.fee === 1 || track.privilege?.fee === 1) {
if (isAccountLoggedIn() && store.state.data.user.vipType === 11) {
result.playable = true;

Loading…
Cancel
Save