Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 14, 2024
1 parent e051917 commit 1323098
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/routes/fortunechina/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function handler(ctx) {
const detailResponse = await ofetch(item.link, {
headers: {
'User-Agent': UA,
}
},
});

const content = load(detailResponse);
Expand All @@ -87,13 +87,11 @@ async function handler(ctx) {
item.description = content(item.link.includes('content') ? '.contain .text' : '.contain .top').html();
if (item.link.includes('jingxuan')) {
item.description += content('.eval-mod_ugo').html();
}
else if (item.link.includes('events')) {
} else if (item.link.includes('events')) {
const eventDetails = await ofetch(`https://www.bagevent.com/event/${item.link.match(/\d+/)[0]}`);
const $event = load(eventDetails);
item.description = $event(".page_con").html();
}
else if (item.link.includes('zhuanlan')) {
item.description = $event('.page_con').html();
} else if (item.link.includes('zhuanlan')) {
item.description += content('.mod-word').html();
}

Expand Down

0 comments on commit 1323098

Please sign in to comment.