This commit is contained in:
2025-09-09 19:59:11 +08:00
parent 7b6a119049
commit ffbced749c
5 changed files with 32 additions and 49 deletions
-23
View File
@@ -463,29 +463,6 @@ export class GirlData extends BaseData {
return displayIds;
}
/** 获取所有用来展示在列表的技师视频的id */
public getGirlVideosData(categoryId: string, girlId: number): any[] {
let oneData = this.getGrilDetail(categoryId, girlId);
if (!oneData) return [];
// 所有id
let allId = oneData.getAllGrilVideoId();
// 用来展示的id
let displayIds = [];
for (let id of allId) {
let price = oneData.getGrilVideoPrice(id);
let isUnlock = true;
if (price <= 0) {
// 价格为0,代表免费
//displayIds.push(id);
} else {
// 价格大于0,代表付费
isUnlock = this.isVideoUnlock(categoryId, girlId, id);
}
displayIds.push({ id: id, isUnlock: isUnlock, price: price });
}
return displayIds;
}
/** 获取第一个技师视频的资源路径 */
public getFirstGrilVideoPath(categoryId: string, girlId: number): string {
let oneData = this.getGrilDetail(categoryId, girlId);