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