协议调试

This commit is contained in:
chen wei bo
2025-09-09 20:33:49 +08:00
parent b74bfb7051
commit e5767d5303
6 changed files with 57 additions and 30 deletions
+2 -21
View File
@@ -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);
}
/** 获取第一个技师视频的资源路径 */