fix(route/fastbull): Use another site (#17765)

* Update news.ts

* fix(fastbull): update domain

---------
This commit is contained in:
Andvari 2024-12-02 06:48:29 +08:00 committed by GitHub
parent 5cd2382057
commit 4dc5ae9b5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 13 deletions

View File

@ -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({

View File

@ -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',
};

View File

@ -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',