diff --git a/game-server/app/servers/activity/handler/entertainHandler.ts b/game-server/app/servers/activity/handler/entertainHandler.ts index 700f1bc52..7721ce554 100644 --- a/game-server/app/servers/activity/handler/entertainHandler.ts +++ b/game-server/app/servers/activity/handler/entertainHandler.ts @@ -64,9 +64,10 @@ export class EntertainHandler { if(!randResult) return resResult(STATUS.ACTIVITY_ENTERTAIN_NO_NUM); let rewards = stringToRewardParam(randResult.reward); - await ActivityEntertainRecModel.record(serverId, activityId, playerData.roundIndex, roleId, { todayIndex: playerData.todayIndex, id: randResult.id, hid: randResult.hid, time: new Date(), reward: randResult.reward }) + let playerRecord = await ActivityEntertainRecModel.record(serverId, activityId, playerData.roundIndex, roleId, { todayIndex: playerData.todayIndex, id: randResult.id, hid: randResult.hid, time: new Date(), reward: randResult.reward }) let { goods } = await addReward(roleId, roleName, sid, serverId, rewards, ITEM_CHANGE_REASON.ACT_DRAGON_BOAT); randResult.incNum(); + playerData.updateBuyCnt(playerRecord); return resResult(STATUS.SUCCESS, { activityId, todayPlayCnt: playerData.todayPlayCnt,