V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
blackcatjlu
V2EX  ›  OpenAI

ChatGPT Plus 强制开通,是怎么做到的?

  •  
  •   blackcatjlu · 163 天前 · 2486 次点击
    这是一个创建于 163 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看到有人直接提取出来开通 GPT PLUS 的链接。 怎么办到的。 查看下面的视频

    https://imgur.com/L0EjhZY

    13 条回复    2023-11-20 15:42:57 +08:00
    robbit
        1
    robbit  
       163 天前
    官方 bug ,没有鉴权吧
    lopssh
        2
    lopssh  
       163 天前 via Android
    登录官网,浏览器里输入
    await fetch("https://chat.openai.com/backend-api/payments/checkout", {
    method: "POST",
    headers: {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36",
    "Authorization": "Bearer ey....."
    },
    redirect: 'follow',
    referrerPolicy: 'no-referrer'
    })
    .then(response => response.text())
    .then(result => console.log(result))
    .catch(error => console.log('error', error));
    就能获得支付链接
    fw1314
        3
    fw1314  
       163 天前   ❤️ 1
    chat.openai.com/?model=gpt-4-gizmo

    加上后面的查询字符串就可以了
    Bulllelon
        4
    Bulllelon  
       163 天前
    厉害
    blackcatjlu
        5
    blackcatjlu  
    OP
       163 天前
    async function fetchToken() {
    try {
    const response = await fetch('/api/auth/session');

    if (!response.ok) throw new Error(`${response.status} ${response.statusText}`);
    const responseData = await response.json();
    const { accessToken } = responseData;

    return accessToken;
    } catch (error) {
    console.error('session 获取过程中出现错误', error);
    }
    }

    async function fetchUrl(token) {
    try {
    const response = await fetch('/backend-api/payments/checkout', {
    method: 'POST',
    headers: {
    // 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/119.0', // 默认使用浏览器的 UA
    'Authorization': `Bearer ${token}`
    },
    redirect: 'follow',
    referrerPolicy: 'no-referrer'
    });

    if (!response.ok) throw new Error(`${response.status} ${response.statusText}`);
    const urlObject = await response.json();
    return urlObject;
    } catch (error) {
    console.error('跳转过程中出现错误', error);
    }
    }

    (async () => {
    const token = await fetchToken();
    if (token) {
    const urlObject = await fetchUrl(token);
    if (urlObject && urlObject.url) {
    window.open(urlObject.url, '_blank'); // 在新标签页中打开 URL
    }
    }
    })();
    shakespark
        6
    shakespark  
       163 天前
    fetch("/api/auth/session").then(r =>
    r.json()).then(({accessToken}) => {
    fetch("/backend-api/payments/checkout", {"method": "POST",
    "headers": { "authorization": `Bearer ${accessToken} `,},
    }).then(r => r.json()).then(d => window.open(d.url))
    })
    Tufutogo
        7
    Tufutogo  
       163 天前 via Android
    这才是 ChatGPT 暂停注册 plus 的原因吗? LOL
    Eins
        8
    Eins  
       162 天前
    网页怎么支付呢?貌似国内 visa 和银联都不行呐
    a30968932
        9
    a30968932  
       162 天前
    @Eins 虚拟卡
    zhangliq
        10
    zhangliq  
       162 天前
    @fw1314 这个链接现在被修复了。
    zhangliq
        11
    zhangliq  
       162 天前
    @fw1314 这个链接现在被修复了,无法使用 4 了
    AmoonLight
        12
    AmoonLight  
       162 天前
    最新消息,会封号
    zimrigeek
        13
    zimrigeek  
       159 天前
    准备强制购买啊,会封号尊嘟假嘟?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   930 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:48 · PVG 03:48 · LAX 12:48 · JFK 15:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.