From 4dc5ae9b5e2d3f4a36d6701adf0caa604832fa5a Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Mon, 2 Dec 2024 06:48:29 +0800 Subject: [PATCH] fix(route/fastbull): Use another site (#17765) * Update news.ts * fix(fastbull): update domain --------- --- lib/routes/fastbull/express-news.ts | 8 ++++---- lib/routes/fastbull/namespace.ts | 6 +++--- lib/routes/fastbull/news.ts | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/routes/fastbull/express-news.ts b/lib/routes/fastbull/express-news.ts index 732105595ce257..6ca3ee928f2d06 100644 --- a/lib/routes/fastbull/express-news.ts +++ b/lib/routes/fastbull/express-news.ts @@ -19,17 +19,17 @@ export const route: Route = { }, radar: [ { - source: ['fastbull.cn/express-news', 'fastbull.cn/'], + source: ['fastbull.com/express-news', 'fastbull.com/'], }, ], - name: '快讯', + name: 'News Flash', maintainers: ['nczitzk'], handler, - url: 'fastbull.cn/express-news', + url: 'fastbull.com/express-news', }; async function handler() { - const rootUrl = 'https://www.fastbull.cn'; + const rootUrl = 'https://www.fastbull.com'; const currentUrl = `${rootUrl}/express-news`; const response = await got({ diff --git a/lib/routes/fastbull/namespace.ts b/lib/routes/fastbull/namespace.ts index a925e44f92c8fa..f35155677fd84c 100644 --- a/lib/routes/fastbull/namespace.ts +++ b/lib/routes/fastbull/namespace.ts @@ -1,7 +1,7 @@ import type { Namespace } from '@/types'; export const namespace: Namespace = { - name: '法布财经', - url: 'fastbull.cn', - lang: 'zh-CN', + name: 'FastBull', + url: 'fastbull.com', + lang: 'en', }; diff --git a/lib/routes/fastbull/news.ts b/lib/routes/fastbull/news.ts index 1711b3bfb95bd0..d13d24036fd18d 100644 --- a/lib/routes/fastbull/news.ts +++ b/lib/routes/fastbull/news.ts @@ -10,7 +10,7 @@ import { art } from '@/utils/render'; import path from 'node:path'; export const route: Route = { - path: ['/news', '/'], + path: '/news', categories: ['finance', 'popular'], view: ViewType.Articles, example: '/fastbull/news', @@ -25,18 +25,18 @@ export const route: Route = { }, radar: [ { - source: ['fastbull.cn/news', 'fastbull.cn/'], + source: ['fastbull.com/cn/news', 'fastbull.com/cn'], }, ], - name: '新闻', + name: 'News', maintainers: ['nczitzk'], handler, - url: 'fastbull.cn/news', + url: 'fastbull.com/news', }; async function handler() { - const rootUrl = 'https://www.fastbull.cn'; - const currentUrl = `${rootUrl}/news`; + const rootUrl = 'https://www.fastbull.com'; + const currentUrl = `${rootUrl}/cn/news`; const response = await got({ method: 'get',