From b64927143a05f86f9ae9a5440b4276a3bae27674 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Sun, 3 Sep 2023 14:52:36 +0800 Subject: [PATCH] Update realtime.js --- lib/v2/stheadline/std/realtime.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/v2/stheadline/std/realtime.js b/lib/v2/stheadline/std/realtime.js index dc0efd747663c6..24e4c75900e138 100644 --- a/lib/v2/stheadline/std/realtime.js +++ b/lib/v2/stheadline/std/realtime.js @@ -46,17 +46,6 @@ module.exports = async (ctx) => { guid: e.articleLink.substring(0, e.articleLink.lastIndexOf('/')), })); - // const items = $(`${category === '即時' ? '.moreNews > .col-md-4' : ''} .media-body > .my-2 > a`) - // .toArray() - // .map((item) => { - // item = $(item); - // return { - // title: item.attr('title'), - // link: item.attr('href'), - // guid: item.attr('href').substring(0, item.attr('href').lastIndexOf('/')), - // }; - // }); - await Promise.all( items.map((item) => ctx.cache.tryGet(item.link, async () => {