fix(drivers/123): update web api host#2677
Closed
mm-o wants to merge 1 commit into
Closed
Conversation
Co-Authored-By: Codex <codex@openai.com>
xrgzs
reviewed
Jun 29, 2026
| const ( | ||
| Api = "https://www.123pan.com/api" | ||
| Api = "https://api.123pan.cn/api" | ||
| AApi = "https://www.123pan.com/a/api" |
Member
|
这是官方域名吗 |
Member
|
感谢您的贡献,但此PR没有 修改AAPI和BAPI,也没有修复123 Share的问题 |
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.
Summary
Update the 123Pan web API host constants to match the current production web client configuration.
Change the regular 123Pan API base from
https://www.123pan.com/b/apitohttps://api.123278.com/b/api.Change the generic API base from
https://www.123pan.com/apitohttps://api.123pan.cn/api.Keep the existing
origin/refererrequest headers ashttps://www.123pan.com/.This fixes login/test/list flows where
https://www.123pan.com/b/api/user/infonow returns200 text/html, causing JSON parsing failures.This PR has breaking changes.
This PR changes public API, config, storage format, or migration behavior.
This PR requires corresponding changes in related repositories.
Close #2675
Related repository PRs:
Testing
gofmt -w drivers/123/util.gogit diff --checkgo test ./...Manual verification performed outside this repository with a real 123Pan account:
https://login.123pan.com/api/user/sign_inreturns a valid token.https://www.123pan.com/b/api/user/inforeturns200 text/htmlwith that token.https://api.123278.com/b/api/user/inforeturns JSON with that token.https://api.123278.com/b/api/file/list/newreturns JSON with that token.Targeted test attempted:
go test ./drivers/123was attempted, but dependency downloads fromproxy.golang.orgfailed with repeatedEOFerrors before compilation.Checklist
gofmt,go fmt, orprettierwhere applicable.AI Disclosure
Tools used:
Usage scope:
Code generation
Refactoring
Documentation
Tests
Translation
Review assistance
I have reviewed and validated all AI-assisted content included in this PR.
I have ensured that all AI-assisted commits include
Co-Authored-Byattribution.I can reproduce all AI-assisted content included in this PR without any AI tools.