点将:修复刷新时间错误

This commit is contained in:
luying
2022-01-14 11:32:37 +08:00
parent f5c8d1e7c8
commit 211ee39645
2 changed files with 11 additions and 15 deletions

View File

@@ -108,14 +108,9 @@ export class GachaHandler {
}
await checkActivityTask(serverId, sid, roleId, TASK_TYPE.GACHA_QUALITY_COUNT, count, { heroes: activityData })
let resultRefFreeTime = 0;
if (dicGacha.free.count > 0) {
let f = getTimeFun(userGacha.refFreeTime);
resultRefFreeTime = <number>f.getAfterDayWithHour(dicGacha.free.day);
}
return resResult(STATUS.SUCCESS, {
gachaId, activityId,
freeCount, refFreeTime: resultRefFreeTime, count: userGacha.count, point: userGacha.point, floor, hope,
freeCount, refFreeTime: userGacha.refFreeTime, count: userGacha.count, point: userGacha.point, floor, hope,
heroes: resultHeroes,
addHeros: heroes,
result: resultList