diff --git a/apps/desktop-client/src/main/account-binder.ts b/apps/desktop-client/src/main/account-binder.ts index dac6255..472d077 100644 --- a/apps/desktop-client/src/main/account-binder.ts +++ b/apps/desktop-client/src/main/account-binder.ts @@ -2839,7 +2839,7 @@ const publishBindingDefinitions: Record { const editUrl = `${SOHU_ORIGIN}/mpfe/v4/contentManagement/news/addarticle?spm=smmp.articlelist.0.0&contentStatus=2&id=${encodeURIComponent(articleId)}`; + const articleUrl = + publishType === "publish" + ? `https://www.sohu.com/a/${encodeURIComponent(articleId)}_${encodeURIComponent(accountId)}` + : null; return { platform: "sohuhao", media_name: mediaName, external_article_id: articleId, external_manage_url: editUrl || SOHU_MANAGE_URL, - external_article_url: null, + external_article_url: articleUrl, publish_type: publishType, }; } @@ -353,7 +358,7 @@ export const sohuhaoAdapter: PublishAdapter = { return { status: "succeeded", summary: publishType === "draft" ? "搜狐号草稿保存成功。" : "搜狐号发布成功。", - payload: buildResultPayload(articleId, account.name, publishType), + payload: buildResultPayload(articleId, account.id, account.name, publishType), }; } catch (error) { return failureResult(error);