This commit is contained in:
2025-09-09 22:05:26 +08:00
parent 677b34ca15
commit e8ff82a475
6 changed files with 822 additions and 373 deletions
+3 -3
View File
@@ -335,17 +335,17 @@ export class GirlData extends BaseData {
let price = oneData.getGrilPhotoPrice(id);
if (price <= 0) {
// 价格为0,代表免费
displayIds.push({ id: id });
displayIds.push(id);
} else {
// 价格大于0,代表付费
let isUnlock = this.isImageUnlock(categoryId, girlId, id);
if (isUnlock) {
// 已经解锁
displayIds.push({ id: id });
displayIds.push(id);
} else {
// 总聊天次数 大于等于 触发次数
if (chatTotalCount >= unlockCounts) {
displayIds.push({ id: id });
displayIds.push(id);
}
}
}
@@ -113,7 +113,7 @@ export class GirlDetailData extends BaseData {
if (!this.photoData) return null;
// 遍历数组找到匹配的资源
for (let oneData of this.photoData) {
if (oneData.id === id) {
if (oneData.id == id) {
return oneData;
}
}