抽卡:提供内部接口

This commit is contained in:
luying
2021-04-23 20:48:03 +08:00
parent 5c24e28d06
commit 2df7a9f1a0
4 changed files with 37 additions and 24 deletions

View File

@@ -131,9 +131,14 @@ export class GachaHandler {
// 任务
await checkTask(roleId, sid, funcs, TASK_TYPE.GASHA, count, true, {});
let resultRefFreeTime = 0;
if(dicGacha.free.count > 0) {
resultRefFreeTime = getAfterDateByDay(refFreeTime, dicGacha.free.day);
}
return resResult(STATUS.SUCCESS, {
gachaId, activityId,
freeCount, refFreeTime: getAfterDateByDay(refFreeTime, dicGacha.free.day), count, point, floor,
freeCount, refFreeTime: resultRefFreeTime, count, point, floor,
heroes, result: resultList
});
}