feat(重阳集会): 添加纯净召唤接口

This commit is contained in:
zhangxk
2023-09-13 10:42:17 +08:00
parent a0e169d8b3
commit 9f99203d06
5 changed files with 59 additions and 10 deletions

View File

@@ -711,6 +711,10 @@ export const STATUS = {
ACTIVITY_CHONGYANG_LOCK: { code: 50085, simStr: '游戏层数未解锁' },
ACTIVITY_CHONGYANG_GAMECODE_NOT_FOUND: { code: 50086, simStr: '未找到该id' },
ACTIVITY_CHONGYANG_BUY_COUNT_OVER: { code: 50087, simStr: '购买次数不足' },
ACTIVITY_CHONGYANG_GAMECODE_USE: { code: 50088, simStr: '游戏已经结算过' },
ACTIVITY_CHONGYANG_GAMESWEEP_LOCK: { code: 50088, simStr: '纯净召唤未开启' },

View File

@@ -17,6 +17,8 @@ export class ChongYangGameRecord {
@prop({ required: true })
isSuccess: boolean; // 是否通过
@prop({ required: true })
isSkip: boolean // 是否纯净召唤
@prop({ required: true })
dayIndex: number; //第几天(层)
}

View File

@@ -39,7 +39,7 @@ export class ChongYangData extends ActivityBase {
let chongyangData: ChongYangSceneDataInDb[] = JSON.parse(data);
if (!chongyangData || chongyangData.length == 0) return;
for (const obj of chongyangData) {
const { dayIndex, dailyFreeCnt, dailyBuyCnt } = obj;
const { dayIndex, dailyFreeCnt } = obj;
let maxFreeCnt = dailyFreeCnt;
this.sceneMap.set(dayIndex, { ...obj, buyCnt: 0, playCnt: 0, maxPlayCnt: maxFreeCnt, isPushBuyRecord: true });