fix(publish/dongchedi): route imagex traffic through session.fetch

Use the account session for imagex apply/upload/commit so the requests carry
the same cookies/UA the bind console saw, instead of falling out of the
session via a bare Node fetch — bytedance imagex was rejecting these as
unauthenticated under the bound session. Also align the binding console URL
with the v2 publish article path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 21:34:15 +08:00
parent 412befef53
commit 1ef7b872e3
2 changed files with 44 additions and 13 deletions
@@ -2910,7 +2910,7 @@ const publishBindingDefinitions: Record<string, PublishPlatformBindingDefinition
id: "dongchedi",
label: "懂车帝",
loginUrl: "https://mp.dcdapp.com/login",
consoleUrl: "https://mp.dcdapp.com/content/article/create",
consoleUrl: "https://mp.dcdapp.com/profile_v2/publish/article",
detect: detectDongchedi,
},
};