From 06d7e3b23cd29ade25340a5a4f6ed1914c240b3a Mon Sep 17 00:00:00 2001 From: Ou Date: Thu, 21 Nov 2024 23:48:49 +0800 Subject: [PATCH] fix(source): migrate fastbull.cn to fastbull.com/cn --- server/sources/fastbull.ts | 8 ++++---- server/sources/xueqiu.ts | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/server/sources/fastbull.ts b/server/sources/fastbull.ts index 14e6b04..e03df5c 100644 --- a/server/sources/fastbull.ts +++ b/server/sources/fastbull.ts @@ -2,8 +2,8 @@ import * as cheerio from "cheerio" import type { NewsItem } from "@shared/types" const express = defineSource(async () => { - const baseURL = "https://www.fastbull.cn" - const html: any = await myFetch(`${baseURL}/express-news`) + const baseURL = "https://www.fastbull.com" + const html: any = await myFetch(`${baseURL}/cn/express-news`) const $ = cheerio.load(html) const $main = $(".news-list") const news: NewsItem[] = [] @@ -26,8 +26,8 @@ const express = defineSource(async () => { }) const news = defineSource(async () => { - const baseURL = "https://www.fastbull.cn" - const html: any = await myFetch(`${baseURL}/news`) + const baseURL = "https://www.fastbull.com" + const html: any = await myFetch(`${baseURL}/cn/news`) const $ = cheerio.load(html) const $main = $(".trending_type") const news: NewsItem[] = [] diff --git a/server/sources/xueqiu.ts b/server/sources/xueqiu.ts index 274fa18..7d9e5ab 100644 --- a/server/sources/xueqiu.ts +++ b/server/sources/xueqiu.ts @@ -21,7 +21,6 @@ const hotstock = defineSource(async () => { cookie: cookie.join("; "), }, }) - console.log(res) return res.data.items.filter(k => !k.ad).map(k => ({ id: k.code, url: `https://xueqiu.com/s/${k.code}`,