s
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
* 与 join 报名支付分离,课程解锁用 VIP 状态
|
||||
*/
|
||||
|
||||
/** 前 2 章试看(暂时关闭,全部需 VIP 解锁) */
|
||||
export function isFreeTrial(_moduleIndex: number, _lessonIndex: number): boolean {
|
||||
return false;
|
||||
/** 第一模块前 2 节可试看,其余章节需 VIP 解锁 */
|
||||
export function isFreeTrial(moduleIndex: number, lessonIndex: number): boolean {
|
||||
return moduleIndex === 0 && lessonIndex < 2;
|
||||
}
|
||||
|
||||
/** 章节是否可观看(需传入 vip 状态,来自 useAuthAndVip 或 /api/digital/vip/check) */
|
||||
|
||||
Reference in New Issue
Block a user