Skip to content

fix(douyin): repair creator draft flow#640

Merged
jackwener merged 13 commits intojackwener:mainfrom
Astro-Han:fix/douyin-draft-auth
Mar 31, 2026
Merged

fix(douyin): repair creator draft flow#640
jackwener merged 13 commits intojackwener:mainfrom
Astro-Han:fix/douyin-draft-auth

Conversation

@Astro-Han
Copy link
Copy Markdown
Contributor

Description

Repair the Douyin creator draft flow against the current creator center payloads and UI flow.

This PR fixes the original false "Not logged in to creator.douyin.com" draft failure, updates the shared Douyin payload parsing to match current responses, and switches douyin draft to the live creator page flow with verified draft-session saving.

Related issue: #582

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

Checks run:

  • pnpm vitest run src/clis/douyin/draft.test.ts
  • pnpm vitest run src/clis/douyin
  • pnpm run build

Runtime verification:

[
  {
    "status": "✅ 草稿已保存,可在创作中心继续编辑",
    "draft_id": "6fkhxqgt1774961340396"
  }
]

@jackwener jackwener force-pushed the fix/douyin-draft-auth branch from 2a79137 to 86b8851 Compare March 31, 2026 14:35
@jackwener jackwener merged commit fea47ab into jackwener:main Mar 31, 2026
8 of 11 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.

2 participants