抽卡:次数返回

This commit is contained in:
luying
2021-04-25 20:26:09 +08:00
parent e8eb61cc16
commit 27779b61ad

View File

@@ -123,9 +123,9 @@ export class GachaHandler {
let { heroes } = await createHeroes(roleId, roleName, sid, serverId, funcs, heroInfo);
await addItems(roleId, roleName, sid, items);
// 更新数据
point = Math.floor((historyCount + 1)/RECRUIT.RECRUIT_BONUS);
point = Math.floor((historyCount + count)/RECRUIT.RECRUIT_BONUS);
userGacha = await UserGachaModel.updateInfo(roleId, gachaId, activityId, {
freeCount, hope, floor, count: historyCount + 1, point
freeCount, hope, floor, count: historyCount + count, point
});
await UserGachaRecModel.createRec(roleId, gachaId, activityId, count, resultList);
@@ -139,7 +139,7 @@ export class GachaHandler {
}
return resResult(STATUS.SUCCESS, {
gachaId, activityId,
freeCount, refFreeTime: resultRefFreeTime, count, point, floor, hope,
freeCount, refFreeTime: resultRefFreeTime, count: userGacha.count, point, floor, hope,
heroes, result: resultList
});
}
@@ -240,7 +240,7 @@ export class GachaHandler {
point: userGacha.point,
turntable: userGacha.turntable,
result: resultList,
heroes, goods
heroes
});
}