diff --git a/game-server/app/servers/activity/handler/gachaHandler.ts b/game-server/app/servers/activity/handler/gachaHandler.ts index 26c27762c..1508475c4 100644 --- a/game-server/app/servers/activity/handler/gachaHandler.ts +++ b/game-server/app/servers/activity/handler/gachaHandler.ts @@ -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 }); }