fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user