From 39e461cd5e541e6e602d33cdec56e862e4e29e20 Mon Sep 17 00:00:00 2001 From: njzy Date: Mon, 14 Dec 2020 21:30:48 +0800 Subject: [PATCH] fix(common/isTrackPlayable): add cloud storage judgement logic (#85 #84) --- src/utils/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/common.js b/src/utils/common.js index 5e7e2ea..3b058e6 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -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;