协议调试
This commit is contained in:
@@ -198,12 +198,14 @@ export class MockGirlService implements IGirlService {
|
||||
}
|
||||
// 详细数据
|
||||
let detail = this.genDetail(girlId, detailDesc, photoData, videoData);
|
||||
// 图片解锁数据
|
||||
// 付费图片解锁数据
|
||||
let unlockImageData: proto.cs.IResourceUnlock[] = [];
|
||||
for (let id of photoIds) {
|
||||
// 价格大于0才为付费
|
||||
let imagePrice = girlDetailConfig.getImagePriceById(girlId, id);
|
||||
// 偶数才解锁
|
||||
let isUnlock = (id % 2 === 0);
|
||||
if (isUnlock) {
|
||||
if (imagePrice > 0 && isUnlock) {
|
||||
let oneData = {
|
||||
girlId: girlId,
|
||||
resId: id,
|
||||
@@ -211,12 +213,14 @@ export class MockGirlService implements IGirlService {
|
||||
unlockImageData.push(oneData);
|
||||
}
|
||||
}
|
||||
// 视频解锁数据
|
||||
// 付费视频解锁数据
|
||||
let unlockVideoData: proto.cs.IResourceUnlock[] = [];
|
||||
for (let id of videoIds) {
|
||||
// 价格大于0才为付费
|
||||
let videoPrice = girlDetailConfig.getVideoPriceById(girlId, id);
|
||||
// 偶数才解锁
|
||||
let isUnlock = (id % 2 === 0);
|
||||
if (isUnlock) {
|
||||
if (videoPrice > 0 && isUnlock) {
|
||||
let oneData = {
|
||||
girlId: girlId,
|
||||
resId: id,
|
||||
|
||||
Reference in New Issue
Block a user