From 7c90eb992d45cceab976d55ae1b5b04b87aeb583 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 30 Mar 2023 14:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=B4=BB=E5=8A=A8):=20?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=85=B3=E8=81=94=E4=BB=BB=E5=8A=A1=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=A7=AF=E5=88=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/role/handler/taskHandler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/servers/role/handler/taskHandler.ts b/game-server/app/servers/role/handler/taskHandler.ts index 3b9a15b84..8bda94815 100644 --- a/game-server/app/servers/role/handler/taskHandler.ts +++ b/game-server/app/servers/role/handler/taskHandler.ts @@ -75,15 +75,15 @@ export class ShopHandler { point = userTask.dailyTaskPoint; weeklyPoint = userTask.dailyTaskPointWeekly; expItem = { id: dic.exp.id, count: dic.exp.count }; + //任务完成后关联活动的积分 + await addActvityTaskPoint(type, dic.point, session ); + } else if (type == TASK_FUN_TYPE.ACHIEVEMENT) { let dic = dicTask; let userTask = await UserTaskModel.incInfo(roleId, { achievementPoint: dic.point }); point = userTask.achievementPoint; } - //任务完成后关联活动的积分 - - if(type == TASK_FUN_TYPE.DAILY) await addActvityTaskPoint(type, id, session ); let goods = await addItems(roleId, roleName, sid, taskReward, ITEM_CHANGE_REASON.TASK_REWARD); if (expItem && expItem.count > 0) {