Kaydol Giriş yap
n/ai · 6 ay önce · Düzenlendi · 2 B görüntülenme
u/arriveGümüş
n/aiu/arrive · 6 ay önce

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
Giriş yap ve tartışmaya katılın.

20 yanıt

Sıralama
  1. Galaxywine Gümüş 6 ay önce #2
    Bu yanıt bir moderatör tarafından silindi
  2. Galaxywine Gümüş 6 ay önce #3

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

    1
  3. Galaxywine Gümüş 6 ay önce #4
    3
  4. ClassmateShen Konunun durumu güncellendi:

    因为【分类错误】将类别从 杂谈 变更为 AI

    6 ay önce
  5. deminge Gümüş 6 ay önce #6
    Yanıtla @Galaxywine: https://www.nodeloc.com/t/topic/87589

    看看

    1
  6. CoolMan Elmas 3 YIL 6 ay önce #7

    厉害了大佬,感谢!

    1
  7. wangjian1993 Bronz 6 ay önce #8

    大佬牛逼

    1
  8. ddcl Altın 6 ay önce #9

    薅羊毛了

    1
  9. chengliang Bronz 6 ay önce #10

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

    0
  10. Lerne_Deutch Gümüş 6 ay önce #11

    谢谢大佬

    0
  11. bl_bro Gümüş 3 YIL 6 ay önce #12

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

    0
  12. w-d Elmas 6 ay önce #13

    感谢大佬

    0
  13. Arvin_Leung 🚗 Şan Çözüldü 2 6 ay önce #14

    感谢大佬分享

    0
  14. Moses_Limbong Gümüş 6 ay önce #15

    thanks mate

    0
  15. Moses_Limbong Gümüş 6 ay önce #16
    Yanıtla @Galaxywine: https://www.nodeloc.com/t/topic/87589

    1122

    0
  16. Paramounta Altın 3 YIL 6 ay önce #17

    大佬厉害 确实可以了

    0
  17. nyawa_kopi Bronz 6 ay önce #18
    Yanıtla @Galaxywine: https://www.nodeloc.com/t/topic/87589

    thank you

    0
  18. T_Kien Gümüş 5 ay önce #19

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

    0
  19. Maxed Bronz 5 ay önce #20

    码住

    0
  20. deleted 5 ay önce #21
    Bu yanıt bir moderatör tarafından silindi
  21. leishao Platin 5 ay önce #22

    还能用吗?
    想学习一下

    0
  22. xmm Gümüş 5 ay önce #23
    Yanıtla @Galaxywine: https://www.nodeloc.com/t/topic/87589

    我看看

    0
  23. santos Gümüş 5 ay önce #24

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

    0