diff --git a/game-server/app/servers/activity/handler/groupShopHandler.ts b/game-server/app/servers/activity/handler/groupShopHandler.ts index 4f11ff666..062c275e7 100644 --- a/game-server/app/servers/activity/handler/groupShopHandler.ts +++ b/game-server/app/servers/activity/handler/groupShopHandler.ts @@ -92,7 +92,7 @@ export class GroupShopHandler { if(isRankUp) { await ActivityGroupShopRecModel.addRecord(activityId, id, new GroupShopRecord(nextDiscount)); // 推送频道 - await sendMessageToGroupShopWithSuc(PUSH_ROUTE.GROUP_SHOP_UPDATE, { activityId, id, curDiscount: nextDiscount }); + await sendMessageToGroupShopWithSuc(PUSH_ROUTE.GROUP_SHOP_UPDATE, { activityId, id, sum: item.sum, curDiscount: nextDiscount }); } let reward = [{ id: item.gid, count: item.count * buyCnt }]; let goods = await addItems(roleId, roleName, sid, reward, ITEM_CHANGE_REASON.ACT_GROUP_SHOP_BUY); @@ -127,7 +127,7 @@ export class GroupShopHandler { if(!item) continue; let nextDiscount = item.getCurDiscount(); // 推送频道 - await sendMessageToGroupShopWithSuc(PUSH_ROUTE.GROUP_SHOP_UPDATE, { activityId: activityData.activityId, id, curDiscount: nextDiscount }); + await sendMessageToGroupShopWithSuc(PUSH_ROUTE.GROUP_SHOP_UPDATE, { activityId: activityData.activityId, id, sum: item.sum, curDiscount: nextDiscount }); } } let playerData = await getGroupShopDataShow(activities[0].activityId, roleId); diff --git a/game-server/app/services/activity/groupShopService.ts b/game-server/app/services/activity/groupShopService.ts index 03d94975d..b05a5ad84 100644 --- a/game-server/app/services/activity/groupShopService.ts +++ b/game-server/app/services/activity/groupShopService.ts @@ -72,7 +72,7 @@ export async function setGroupShopToSetSum(arr: { activityId: number, itemId: nu let item = playerData.findItemById(itemId); let nextDiscount = item.getCurDiscount(); // 推送频道 - await sendMessageToGroupShopWithSuc(PUSH_ROUTE.GROUP_SHOP_UPDATE, { activityId, id: itemId, curDiscount: nextDiscount }); + await sendMessageToGroupShopWithSuc(PUSH_ROUTE.GROUP_SHOP_UPDATE, { activityId, sum, id: itemId, curDiscount: nextDiscount }); } } }