diff --git a/Scripts/authorization&cartId.js b/Scripts/authorization&cartId.js index f227554..37b433c 100644 --- a/Scripts/authorization&cartId.js +++ b/Scripts/authorization&cartId.js @@ -25,6 +25,9 @@ if ($request.method === "PUT" && pattern.test(url)) { $persistentStore.write(cartId, "cartId"); console.log(`Stored cartId: ${cartId}`); } + + // ↓↓↓ 新增这一行:给历史记录脚本提供时间戳 ↓↓↓ + $persistentStore.write(String(Date.now()), "history_cart_ts"); // 发送通知,成功捕获并存储 Authorization 和 CartId $notification.post(