From 394ea3c01a1842f818d169be48a8cbe9b995a05e Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 8 May 2026 23:35:46 +0800 Subject: [PATCH] Add session source guidance --- README.md | 4 ++++ docs/index.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/README.md b/README.md index db6d46f..b5b4b2e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ 纯前端单页面工具,用来把 ChatGPT Web 登录 session JSON 转换成 CPA 或 sub2api 可导入 JSON。 +## 在线使用 + +### [**》》 点我直接使用 《《**](https://gtxx3600.github.io/GPTSession2CPAandSub2API/) + ## 支持输入 支持粘贴或拖入 ChatGPT Web session JSON,例如包含: diff --git a/docs/index.html b/docs/index.html index 6589f85..86b32d1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -250,6 +250,43 @@ color: var(--text); } + .session-guide { + margin: 0 0 12px; + padding: 13px 14px; + border: 1px solid rgba(36, 80, 90, 0.34); + border-left: 5px solid var(--accent); + border-radius: var(--radius); + background: #eaf5f7; + color: var(--text); + line-height: 1.5; + } + + .session-guide strong { + display: block; + margin-bottom: 4px; + color: var(--accent-strong); + font-size: 0.98rem; + } + + .session-guide p { + margin: 0; + color: #33464d; + font-size: 0.9rem; + } + + .session-guide a { + color: var(--accent-strong); + font-family: var(--mono); + font-weight: 800; + overflow-wrap: anywhere; + } + + .session-guide .session-warning { + margin-top: 7px; + color: var(--danger); + font-weight: 700; + } + .input-actions { display: flex; flex-wrap: wrap; @@ -529,6 +566,15 @@
+
+ Session 数据从这里获取 +

+ 先在浏览器登录 ChatGPT,然后打开 + https://chatgpt.com/api/auth/session + ,复制页面显示的整段 JSON,粘贴到下方输入框。 +

+

这段 JSON 包含 accessToken,等同敏感登录凭证,不要发给别人。

+
拖入 JSON 文件