From ebc32104c58de06d96e4787477902e0da80ffbd9 Mon Sep 17 00:00:00 2001 From: ourongxing Date: Sat, 19 Apr 2025 14:36:42 +0800 Subject: [PATCH] fix: coolapk fixed #138 --- server/sources/coolapk/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/sources/coolapk/index.ts b/server/sources/coolapk/index.ts index b00250f..18bd344 100644 --- a/server/sources/coolapk/index.ts +++ b/server/sources/coolapk/index.ts @@ -8,7 +8,7 @@ interface Res { message: string // 起的标题 editor_title: string - shareUrl: string + url: string entityType: string pubDate: string // dayjs(dateline, 'X') @@ -27,10 +27,11 @@ export default defineSource({ headers: await genHeaders(), }) if (!r.data.length) throw new Error("Failed to fetch") + console.log(r.data[0]) return r.data.filter(k => k.id).map(i => ({ id: i.id, title: i.editor_title || load(i.message).text().split("\n")[0], - url: i.shareUrl, + url: `https://www.coolapk.com${i.url}`, extra: { info: i.targetRow?.subTitle, // date: new Date(i.dateline * 1000).getTime(),