fix(route): update 69shuba url (#17256)

This commit is contained in:
xbpk3t
2024-10-23 10:41:54 +08:00
committed by GitHub
parent 39d83bc28c
commit 199d4febfc
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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(
+1 -1
View File
@@ -2,5 +2,5 @@ import type { Namespace } from '@/types';
export const namespace: Namespace = {
name: '69书吧',
url: '69shuba.pro',
url: '69shuba.cx',
};