From 7d7b32ae236ee657199587900a19012ebb72f2c7 Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 3 Apr 2023 15:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E9=81=93=E5=85=B7):=20?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=99=90=E6=97=B6=E9=81=93=E5=85=B7=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/role/rewardService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/role/rewardService.ts b/game-server/app/services/role/rewardService.ts index cf1cf3c80..3b0d6367b 100644 --- a/game-server/app/services/role/rewardService.ts +++ b/game-server/app/services/role/rewardService.ts @@ -482,7 +482,7 @@ export async function addActivityItem(serverId: number, roleId: string, roleName if(activities.length > 0) { let activityData = getActivityData(activities[0], createTime, serverTime); if(!activityData || !activityData.canShow()) return null; - let item = await ActivityItemModel.increaseActivityItem(roleId, id, count, { roleId, roleName, itemName, id, expireTime: activityData.nextRefreshTime }); + let item = await ActivityItemModel.increaseActivityItem(roleId, id, count, { roleId, roleName, itemName, id, expireTime: Math.floor(activityData.nextRefreshTime/1000) }); return { id: item.id, count: item.count, inc: count, expireTime: item.expireTime, reason }; } }