fix(route): update 69shuba url (#17256)
This commit is contained in:
@@ -6,7 +6,7 @@ import type { Route, DataItem } from '@/types';
|
||||
export const route: Route = {
|
||||
path: '/article/:id',
|
||||
name: '章节',
|
||||
url: 'www.69shuba.pro',
|
||||
url: 'www.69shuba.cx',
|
||||
maintainers: ['eternasuno'],
|
||||
example: '/69shu/article/47117',
|
||||
parameters: { id: '小说 id, 可在对应小说页 URL 中找到' },
|
||||
@@ -21,13 +21,13 @@ export const route: Route = {
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
source: ['www.69shuba.pro/book/:id.htm'],
|
||||
source: ['www.69shuba.cx/book/:id.htm'],
|
||||
target: '/article/:id',
|
||||
},
|
||||
],
|
||||
handler: async (ctx) => {
|
||||
const { id } = ctx.req.param();
|
||||
const link = `https://www.69shuba.pro/book/${id}.htm`;
|
||||
const link = `https://www.69shuba.cx/book/${id}.htm`;
|
||||
const $ = load(await get(link));
|
||||
|
||||
const item = await Promise.all(
|
||||
|
||||
@@ -2,5 +2,5 @@ import type { Namespace } from '@/types';
|
||||
|
||||
export const namespace: Namespace = {
|
||||
name: '69书吧',
|
||||
url: '69shuba.pro',
|
||||
url: '69shuba.cx',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user