From 2be7e6caefc48514d93435319bca19c206bba0a5 Mon Sep 17 00:00:00 2001 From: pllx Date: Tue, 28 Apr 2026 13:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E8=A3=85=E9=A5=B0=E5=93=81=E6=95=B0=E9=87=8F=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E7=A1=AE=E8=AE=A4=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E4=B8=AD=E6=8F=90=E7=A4=BA=E5=8F=A0=E5=8A=A0=E5=A4=A9?= =?UTF-8?q?=E6=95=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/chat-room/shop-controls.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/resources/js/chat-room/shop-controls.js b/resources/js/chat-room/shop-controls.js index 2134954..d6fa2f4 100644 --- a/resources/js/chat-room/shop-controls.js +++ b/resources/js/chat-room/shop-controls.js @@ -548,16 +548,10 @@ async function confirmAndBuyItem(item) { } } - // 个性装扮支持多份购买(叠加天数),弹出数量选择 - if (DECORATION_TYPE_TO_SLOT[item.type] && item.type !== "sign_repair") { - quantity = await window.promptQuantity?.(`购买多份【${item.name}】可叠加天数\n已激活的同款续购自动延长,无需一次买满`, 1, 99) ?? 1; - if (quantity === null || quantity === undefined) { - return; - } - } - const validityText = buildValidityText(item); - const confirmMessage = `确认花费 💰 ${Number(Number(item.price || 0) * quantity).toLocaleString()} 金币购买\n【${item.name}】${quantity > 1 ? ` × ${quantity}` : ""}${validityText ? `\n${validityText}` : ""}\n\n确定购买吗?`; + const isDecoration = DECORATION_TYPE_TO_SLOT[item.type] && item.type !== "sign_repair"; + const stackingHint = isDecoration ? "\\n\\n💡 已激活的同款续购自动叠加天数,可多次购买" : ""; + const confirmMessage = `确认花费 💰 ${Number(Number(item.price || 0) * quantity).toLocaleString()} 金币购买\\n【${item.name}】${quantity > 1 ? ` × ${quantity}` : ""}${validityText ? `\\n${validityText}` : ""}${stackingHint}\\n\\n确定购买吗?`; const confirmed = await confirmShopPurchase(confirmMessage); if (confirmed) {