名将擂台:奖励

This commit is contained in:
luying
2022-08-15 20:42:57 +08:00
parent f13b5dbef1
commit 4ac2abdb29
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -338,8 +338,8 @@ export async function ladderBattleEndReward(roleId: string, roleName: string, si
let dicLadderDifficultRatio = gameData.ladderDifficultRatio.get(rank); let dicLadderDifficultRatio = gameData.ladderDifficultRatio.get(rank);
if(!dicLadderDifficultRatio) return null; if(!dicLadderDifficultRatio) return null;
let warReward = new WarReward(roleId, roleName, sid, dicLadderDifficultRatio.gkId, isSuccess); let warReward = new WarReward(roleId, roleName, sid, dicLadderDifficultRatio.gkId, isSuccess);
warReward.setLadderReward(dicLadderDifficultRatio.randomFailReward, true); warReward.setLadderReward(dicLadderDifficultRatio.randomWinReward, true);
warReward.setLadderReward(dicLadderDifficultRatio.randomWinReward, false); warReward.setLadderReward(dicLadderDifficultRatio.randomFailReward, false);
let battleGoods = await warReward.saveReward(num); let battleGoods = await warReward.saveReward(num);
let breakRewards: RewardInter[] = []; let breakRewards: RewardInter[] = [];
for(let i = historyRank - 1; i >= rank; i--) { for(let i = historyRank - 1; i >= rank; i--) {
+5 -5
View File
@@ -63,8 +63,8 @@ export abstract class ActivityBase {
this.interval = activityData.interval * 86400; this.interval = activityData.interval * 86400;
this.type = activityData.type; this.type = activityData.type;
console.log('今天是活动第几天', activityData.beginTime, new Date, this.todayIndex, createTime, serverTime) // console.log('今天是活动第几天', activityData.beginTime, new Date, this.todayIndex, createTime, serverTime)
console.log('***** activityData', activityData.timeType, this.beginTime, this.endTime, this.interval, this.todayIndex, this.roundIndex, this.nextRefreshTime, this.effectDay) // console.log('***** activityData', activityData.timeType, this.beginTime, this.endTime, this.interval, this.todayIndex, this.roundIndex, this.nextRefreshTime, this.effectDay)
switch (activityData.timeType) { switch (activityData.timeType) {
case ACTIVITY_TIME_TYPE.SERVER_OPEN_TIME: { case ACTIVITY_TIME_TYPE.SERVER_OPEN_TIME: {
this.beginTime = moment(serverTime * 1000).add(this.delayDay, 'd').startOf('d').add(REFRESH_TIME, 'h').valueOf(); this.beginTime = moment(serverTime * 1000).add(this.delayDay, 'd').startOf('d').add(REFRESH_TIME, 'h').valueOf();
@@ -109,9 +109,9 @@ export abstract class ActivityBase {
let hidOverTime = moment(serverTime * 1000).add(activityData.hideDayByServer, 'd').startOf('d').add(REFRESH_TIME, 'h').valueOf(); let hidOverTime = moment(serverTime * 1000).add(activityData.hideDayByServer, 'd').startOf('d').add(REFRESH_TIME, 'h').valueOf();
if(this.beginTime < hidOverTime) this.beginTime = hidOverTime; if(this.beginTime < hidOverTime) this.beginTime = hidOverTime;
} }
console.log('活动时间数据...', '活动id:', activityData.activityId, '类型:', activityData.timeType, '开始时间:', this.beginTime, moment(this.beginTime).toDate(), // console.log('活动时间数据...', '活动id:', activityData.activityId, '类型:', activityData.timeType, '开始时间:', this.beginTime, moment(this.beginTime).toDate(),
'结束:', this.endTime, moment(this.endTime).toDate(), // '结束:', this.endTime, moment(this.endTime).toDate(),
'今天第几天:', this.todayIndex, '回合:', this.roundIndex, '下次刷新:', this.nextRefreshTime, moment(this.nextRefreshTime).toDate()) // '今天第几天:', this.todayIndex, '回合:', this.roundIndex, '下次刷新:', this.nextRefreshTime, moment(this.nextRefreshTime).toDate())
} }
} }