Skip to content

Commit

Permalink
support generate URL with prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Oct 18, 2024
1 parent 9d58c56 commit 5dee524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/feishu/sfc_company.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/supabase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ export interface SFCTableRowItem {
raw: any | null;
created_at: string;
updated_at: string | null;
detail_prefix: string; // 详情页前缀 ri | corp
}

0 comments on commit 5dee524

Please sign in to comment.