diff --git a/src/feishu/sfc_company.ts b/src/feishu/sfc_company.ts index 8ff102c..70a72a1 100644 --- a/src/feishu/sfc_company.ts +++ b/src/feishu/sfc_company.ts @@ -79,7 +79,9 @@ function normalizeWorkItemPayload( work_item_type_key: string ): createWorkItemPayload { // 描述字段用富文档结构处理 https://project.feishu.cn/b/helpcenter/1p8d7djs/1tj6ggll#8b62937b - const url = `https://apps.sfc.hk/publicregWeb/corp/${item.id}/details`; + const url = `https://apps.sfc.hk/publicregWeb/${ + item.detail_prefix || "corp" + }/${item.id}/details`; const description = [ { type: "paragraph", diff --git a/src/supabase/types.ts b/src/supabase/types.ts index 23acbf9..614b33c 100644 --- a/src/supabase/types.ts +++ b/src/supabase/types.ts @@ -19,4 +19,5 @@ export interface SFCTableRowItem { raw: any | null; created_at: string; updated_at: string | null; + detail_prefix: string; // 详情页前缀 ri | corp }