ChatGPT解封优惠码使用焚诀
ChatGPT解封优惠码使用焚诀
要求:
原本被取消Prox20又补了邮件赠送一个月Pro X20优惠码的可用
流程:
1.新注册账号
2.F12 提取长链(也许短链也行?没测试,我绑fait24卡绑不上)
void (async function(){
try {
const session = await (await fetch('/api/auth/session')).json();
if (!session.accessToken) {
console.error('❌ 请先登录 ChatGPT!');
return;
}
const promo = prompt('输入优惠代码(留空则跳过):', '');
const body = {
entry_point: 'all_plans_pricing_modal',
plan_name: 'chatgptplusplan', // Plus 套餐
billing_details: {
country: 'US',
currency: 'USD'
},
checkout_ui_mode: 'hosted' // 长链
};
if (promo && promo.trim()) {
body.promo_code = promo.trim();
}
console.log('⏳ 正在生成支付链接...');
const res = await fetch('https://chatgpt.com/backend-api/payments/checkout', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + session.accessToken,
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
const data = await res.json();
const url = data.url || data.stripe_hosted_url || data.checkout_url ||
(data.checkout_session_id
? 'https://chatgpt.com/checkout/openai_llc/' + data.checkout_session_id
: null);
if (url) {
console.log('✅ 生成成功,长链如下:');
console.log(url);
console.log('📋 点击上方链接即可复制');
} else {
console.error('❌ 提取失败:', data.detail || JSON.stringify(data));
}
} catch (e) {
console.error('❌ 发生错误:', e);
}
})();
© 版权声明
文章版权归作者所有,未经允许请勿转载。
暂无评论...