diff --git a/Scripts/NewAddToCart_Web.js b/Scripts/NewAddToCart_Web.js index f395fa6..ab55921 100644 --- a/Scripts/NewAddToCart_Web.js +++ b/Scripts/NewAddToCart_Web.js @@ -33,9 +33,9 @@ let useRemote = false; function log(type, message, detail = "") { const icon = type === "success" ? "✅" : (type === "error" ? "❌" : "ℹ️"); - const color = type === "success" ? "green" : (type === "error" ? "red" : "#666"); + const color = type === "success" ? "#52b043" : (type === "error" ? "#e05050" : "#777"); console.log(`${icon} ${message} ${detail}`); - logBuffer.push(`
${icon} ${message} ${detail}
`); + logBuffer.push(`
  • ${icon} ${message} ${detail}
  • `); } const generateRiskSessionId = () => @@ -82,10 +82,10 @@ function finalizeAndClean() { : `成功: ${successCount} / 失败: ${failureCount}${priceNote}`; const failedHtml = failedNames.length > 0 - ? `
    加购失败的游戏:
    ` + ? `
    加购失败的游戏:
    ` : ''; const priceHtml = ngnStr - ? `
    游戏总价: ${ngnStr}
    ` + ? `
    游戏总价 ${ngnStr}
    ` : ''; $notification.post( @@ -93,7 +93,48 @@ function finalizeAndClean() { notifSubtitle, `来源: ${sourceLabel}` ); - const html = `Xbox Cart

    执行结果: 成功 ${successCount} / 失败 ${failureCount} | 来源: ${sourceLabel}

    ${priceHtml}${failedHtml}
    ${logBuffer.join("")}
    `; + const html = ` + + + + +Xbox Cart · 尼区 + + + +
    + 🇳🇬 + 尼区 · 加购完成 +
    +
    +
    ${successCount}
    成功
    +
    ${failureCount}
    失败
    +
    ${successCount + failureCount}
    合计
    +
    +${priceHtml}${failedHtml} +
    来源: ${sourceLabel}
    +
    + +`; $done({ response: { status: 200, headers: { "Content-Type": "text/html;charset=utf-8", "Cache-Control": "no-store, no-cache, must-revalidate", "Pragma": "no-cache" }, body: html } }); };