Skip to content

fix(uc): generate persistent device tokens for downloads - #9640

Merged
okatu-loli merged 1 commit into
AlistGo:mainfrom
okatu-loli:codex/fix-uc-download-token
Sep 19, 2026
Merged

okatu-loli merged 1 commit into
AlistGo:mainfrom
okatu-loli:codex/fix-uc-download-token

Conversation

@okatu-loli

Copy link
Copy Markdown
Collaborator

UC download requests currently omit the device token required by some accounts, which can cause UC to return a QR-code prompt video instead of the requested file. Generate and persist a per-storage 24-byte UTDID and send its derived ut on UC download requests, using the AES-128-CBC/PKCS7 format described in #8030 (comment).

The identity survives storage reloads, and Quark requests do not receive the UC token. Download headers continue to use the request-time cookie snapshot when UC rotates cookies. Empty download responses now return an error instead of indexing an empty result.

Validation:

  • go test -race ./drivers/quark_uc passed, including an independent OpenSSL token fixture, persisted identity reload, UC/Quark request behavior, cookie rotation, and empty responses.
  • go build ./drivers/quark_uc ./drivers/quark_uc_tv and the full application build passed.
  • The local test instance serves the v3 frontend and responds to /ping; real-account UC download/playback has not yet been confirmed.

Fixes #8030.

@okatu-loli
okatu-loli merged commit 5543ac5 into AlistGo:main Sep 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UC网盘连接失败?昨天开始UC网盘出现错误

3 participants