docs: clarify 123 pan cross-region deployment limitations#185
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/qaiu/netdisk-fast-download/sessions/a4939036-2258-46e7-9a96-ca07967baf72 Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update README.md with deployment and usage limitations for 123 cloud storage
docs: clarify 123 pan cross-region deployment limitations
May 21, 2026
Agent-Logs-Url: https://github.com/qaiu/netdisk-fast-download/sessions/afcbd0f7-8f96-4d4f-8242-1244efd82e5d Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com>
…lable Agent-Logs-Url: https://github.com/qaiu/netdisk-fast-download/sessions/4d7802d4-a012-4d4a-8f92-7280a79715cc Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original prompt
请在仓库
qaiu/netdisk-fast-download中更新README.md,补充 123 云盘解析的部署与使用限制说明。背景:
auths.ye.username/password的配置示例。请修改 README,要求:
在 README 顶部现有“注意⚠️ ”提示区域中,增加一条关于 123 云盘可能存在跨区域访问限制 的提醒。
在 README 的“认证信息配置说明”部分(123 的
auths.ye配置示例附近)补充一段说明:保持 README 原有结构和语气,不要大改,不要引入与本任务无关的修改。
创建一个 pull request,标题简洁明确,例如:
请直接完成修改并创建 PR。
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: 123解析,当前是否同时支持账密和Authorization
Assistant: 要确认“123解析”当前是否同时支持账号密码和
Authorization,我需要先看一下这个仓库里相关实现。Assistant: 支持。
从仓库当前代码看,123 解析现在同时支持“账密登录”和“Authorization/Token”两种方式:
README.md里auth参数的 JSON 结构明确写了:authType可为cookie / accesstoken / authorization / password / customusername、password用于password类型token用于cookie / token类类型这说明接口层面已经设计成同时兼容 password 和 authorization。
源码位置:
README.md(认证参数说明)parser/src/main/resources/py/123.py中有login_123pan(username, password),会调用 123 的登录接口sign_in获取 token。这说明 123 盘账密登录是有实现的。
同仓库文档
parser/doc/API_USAGE.md里也写了authType支持cookie/accesstoken/authorization;而README.md比这个文档更新,额外补充了password/custom。我倾向于认为:当前实际能力以 README 为准,已经扩展到 password。
所以结论是:
“123解析,当前是否同时支持账密和Authorization?”——是,当前仓库设计上支持两者。
更准确地说:
authType: "password",并传username+passwordauthType: "authorization",并传token如果你愿意,我可以继续帮你精确定位 123 解析实际消费这两种 authType 的代码位置,确认它不是只写了文档而是后端真正已接入。
另外提醒一下:我这次用到的代码搜索结果最多只返回 10 条,可能不完整。如果你想自己继续看,可在 GitHub 代码搜索里继续查这个仓库:
https://github.com/search?q=repo%3Aqaiu%2Fnetdisk-fast-download+123+Authorization+password&type=codeUser: 继续
Assistant: 继续看代码后,可以把结论收紧到:
结论
123 解析当前确实同时支持两种输入方式:
username + passwordtoken传入但要注意一层细节:
Ye2Tool里,代码直接读取的是auths.get("token")或auths.get("username") / auths.get("password")token字段,不是单独读取一个名为Authorization的字段authType = authorization这种认证模式,那它在上层auth协议/文档中是支持的;落到 123 解析器内部,本质仍然是把值放进token,最后拼成Authorization: Bearer {token}请求头直接证据
1) 123 解析器类注释已明确写了“支持账号密码或token配置”
parser/src/main/java/cn/qaiu/parser/impl/Ye2Tool.java2) 账密登录真实存在,不只是文档
还是
Ye2Tool.java:这说明 123 会直接读取用户名密码并调用登录接口换 token。
另外
README.md也给了 123 的配置示例:并注明:
3) token 方式也是真实接入的
Ye2Tool.java里解析文件列表前有这段逻辑:这说明 如果传了 token,就直接用,不必再走账密登录。
4) 最终请求 123 接口时,确实走的是 Authorization 头
Python 参考实现
parser/src/main/resources/py/123.py里更直观:所以可以明确说:
token,不是单独的auth/Authorization字段你这个问题最准确的回答
如果你问的是:
“123 解析现在是否同时支持账密和 Authorization?”
答:支持。
更精确地说是:
username/passwordtoken,然后内部组装成Authorization: Bearer {token}但如果你问的是:
“123 解析器是否区分
authType=password和authType=authorization两条完全不同的内部代码路径?”那答案是:
Authorization字段token字段所以 “Authorization 支持”在 123 这里更像是协议层/文档层的认证类型别名,最终落地还是 token 模式。
实操建议
如果你现在要给 123 用认证,优先按这两种传:
方式1:账密
{ "authType": "password", "username": "xxx", "password": "yyy" }方式2:Token
{ "authType": "authorization... </details> <!-- START COPILOT CODING AGENT SUFFIX --> *This pull request was created from Copilot chat.* >