最新可用的 chatgpt business 促销码和脚本
脚本-开发者-控制台-粘贴运行
---
(async function generateUSTeamLink() {
console.log("⏳ 正在获取 Session Token...");
let accessToken;
try {
accessToken = (await fetch("/api/auth/session").then(r => r.json()))?.accessToken;
if (!accessToken) throw new Error("Token 为空");
} catch (e) {
return console.error("❌ 获取 Token 失败,请确认你已经登录了 ChatGPT 网页版");
}
const payload = {
plan_name: "chatgptteamplan",
team_plan_data: { workspace_name: "workspace", price_interval: "month", seat_quantity: 2 },
billing_details: { country: "US", currency: "USD" },
promo_code: "TechAheadUS", // 美区实测促销码
checkout_ui_mode: "hosted"
};
console.log("⏳ 正在绕过网页端,生成美国区专属打折付款链接...");
try {
const resp = await fetch("", {
method: "POST",
headers: { Authorization: `Bearer ${accessToken}`, "Content-Type": "application/json" },
body: JSON.stringify(payload)
});
const data = await resp.json();
const url = data?.url || data?.stripe_hosted_url || data?.checkout_url;
if (url) {
console.log("==========================================");
console.log("✅ 链接生成成功!请点击或复制下方长链接在浏览器打开:\n");
console.log(url);
console.log("\n==========================================");
} else {
console.error("❌ 生成失败,请检查梯子是否为全局美国节点,或促销码是否过期。原始返回:", data);
}
} catch (e) {
console.error("❌ 网络请求失败,请检查网络环境:", e);
}
})();
显示更多