n/aiu/arrive · 5 mesi fa
Registrati Accedi
n/ai · 5 mesi fa · Modificato · 1,7K visualizzazioni
u/arriveArgento

team13积分0.52刀跳转代码,自取

team13积分0.52刀跳转代码,自取

team 13积分 0.52 刀

  1. 访问 https://chatgpt.com/codex/team/checkout?checkout_from=codex_app

  2. f12 控制台执行

(async () => {
  try {
    // 1. 获取 accessToken
    const sessionRes = await fetch("/api/auth/session", { credentials: "include" });
    if (!sessionRes.ok) {
      throw new Error(`获取 session 失败 (HTTP ${sessionRes.status})`);
    }
    const sessionData = await sessionRes.json();
    const accessToken = sessionData?.accessToken;
    if (!accessToken) {
      throw new Error("未找到 accessToken,请确认已登录");
    }

    // 2. 从 URL 获取 checkout_session_id
    const checkoutSessionId = window.location.pathname.split("/").pop().split("?")[0];

    // 3. 发起 update 请求
    const res = await fetch("https://chatgpt.com/backend-api/payments/checkout/update", {
      method: "POST",
      credentials: "include",
      headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer ${accessToken}`,
        "oai-device-id": localStorage.getItem("oai-device-id") || "",
        "oai-language": "zh-CN",
        Referer: window.location.href
      },
      body: JSON.stringify({
        checkout_session_id: checkoutSessionId,
        processor_entity: "openai_llc",
        credit_purchase_quantity: 13
      })
    });

    if (!res.ok) {
      const text = await res.text().catch(() => "");
      throw new Error(`请求失败 (HTTP ${res.status}): ${text.slice(0, 120)}`);
    }

    const data = await res.json();
    console.log("成功:", data);

    // 4. 执行完成,刷新页面
    window.location.reload();

  } catch (err) {
    console.error("失败:", err.message);
  }
})();
11
20
Accedi per partecipare alla discussione.

20 risposte

Ordinamento
  1. Galaxywine Argento 5 mesi fa
    3
  2. deminge Argento 5 mesi fa

    看看

    1
  3. Moses_Limbong Argento 5 mesi fa

    1122

    0
  4. nyawa_kopi Bronzo 5 mesi fa

    thank you

    0
  5. xmm Argento 5 mesi fa

    我看看

    0
  6. Galaxywine Argento 5 mesi fa

    这个内容我最早就是在你站看到的

    1
  7. CoolMan Diamante 3 YEARS 5 mesi fa

    厉害了大佬,感谢!

    1
  8. wangjian1993 Bronzo 5 mesi fa

    大佬牛逼

    1
  9. ddcl Oro 5 mesi fa

    薅羊毛了

    1
  10. Eliminato 5 mesi fa
    Questa risposta è stata eliminata da un moderatore
  11. chengliang Bronzo 5 mesi fa

    佬,请问支付怎么解决,在哪里可以买卡

    0
  12. Lerne_Deutch Argento 5 mesi fa

    谢谢大佬

    0
  13. bl_bro Argento 3 YEARS 5 mesi fa

    那能不能改为0?如果可以那岂不是 :ac01:

    0
  14. w-d Diamante 5 mesi fa

    感谢大佬

    0
  15. Arvin_Leung 3 YEARS 5 mesi fa

    感谢大佬分享

    0
  16. Moses_Limbong Argento 5 mesi fa

    thanks mate

    0
  17. Paramounta Oro 3 YEARS 5 mesi fa

    大佬厉害 确实可以了

    0
  18. T_Kien Argento 5 mesi fa

    佬,支付卡基本都不行呀 :ac03:

    0
  19. Maxed Bronzo 5 mesi fa

    码住

    0
  20. Eliminato 5 mesi fa
    Questa risposta è stata eliminata da un moderatore
  21. leishao Platino 5 mesi fa

    还能用吗?
    想学习一下

    0
  22. santos Argento 5 mesi fa

    目前已经失效了此方法,应该只有k12了

    0