Browse Source

Merge branch '2023-9-21_免费' into jenkins-main

liushengqiang 1 year ago
parent
commit
28e755b42f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/courseList/index.tsx

+ 6 - 2
src/views/courseList/index.tsx

@@ -170,8 +170,12 @@ export default defineComponent({
       }
 
       if (!item.hasCache) {
-        const hasVip = handleCheckVip()
-        if (!hasVip) return
+        const hasFree = String(item.accessScope) === '0'
+        if (!hasFree){
+          const hasVip = handleCheckVip()
+          if (!hasVip) return
+        }
+        
         // 下载中不提示
         if (item.downloadStatus == 1) {
           return