Skip to content

fix: douyin publish - fix illegal title error#1740

Open
chang-ph wants to merge 1 commit into
jackwener:mainfrom
chang-ph:fix/douyin-publish
Open

fix: douyin publish - fix illegal title error#1740
chang-ph wants to merge 1 commit into
jackwener:mainfrom
chang-ph:fix/douyin-publish

Conversation

@chang-ph
Copy link
Copy Markdown

修复抖音发布时偶现的"标题非法"(API error 48)问题。

问题

抖音发布接口返回 COMMAND_EXEC 错误,提示"标题非法"(API error 48 at POST https://creator.douyin.com/web/api/media/aweme/create_v2/)。

原因

text 字段只传了 caption(正文),缺少标题前缀;同时 caption 字段(原始标题)被留空,导致接口校验时将标题视为非法。

修复

  • text 改为拼接 "${title} ${caption}",确保标题包含在发布内容中
  • caption 改为传入实际标题内容

@chang-ph chang-ph force-pushed the fix/douyin-publish branch from 19627ff to 5433756 Compare May 25, 2026 06:40
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.

1 participant