fix(route/fastbull): Use another site (#17765)
* Update news.ts * fix(fastbull): update domain ---------
This commit is contained in:
parent
5cd2382057
commit
4dc5ae9b5e
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue