Skip to content

Commit

Permalink
fix(route/fastbull): Use another site (#17765)
Browse files Browse the repository at this point in the history
* Update news.ts

* fix(fastbull): update domain

---------
  • Loading branch information
dzx-dzx authored Dec 1, 2024
1 parent 5cd2382 commit 4dc5ae9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions lib/routes/fastbull/express-news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions lib/routes/fastbull/namespace.ts
Original file line number Diff line number Diff line change
@@ -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',
};
12 changes: 6 additions & 6 deletions lib/routes/fastbull/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 4dc5ae9

Please sign in to comment.