协议调试
This commit is contained in:
@@ -399,6 +399,7 @@ export class GirlData extends BaseData {
|
||||
let price = oneData.getGrilPhotoPrice(id);
|
||||
return price / 100;
|
||||
}
|
||||
|
||||
/** 获取技师图片的价格 */
|
||||
public getGrilPhotoPrice(
|
||||
categoryId: string,
|
||||
@@ -440,27 +441,7 @@ export class GirlData extends BaseData {
|
||||
categoryId: string,
|
||||
girlId: number
|
||||
): number[] {
|
||||
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);
|
||||
if (price <= 0) {
|
||||
// 价格为0,代表免费
|
||||
displayIds.push(id);
|
||||
} else {
|
||||
// 价格大于0,代表付费
|
||||
let isUnlock = this.isVideoUnlock(categoryId, girlId, id);
|
||||
if (isUnlock) {
|
||||
// 已经解锁
|
||||
displayIds.push(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
return displayIds;
|
||||
return this.getAllGrilVideoId(categoryId, girlId);
|
||||
}
|
||||
|
||||
/** 获取第一个技师视频的资源路径 */
|
||||
|
||||
Reference in New Issue
Block a user