From 47e4ae120a407fa6bb7031803dc7e2eea3f07ce1 Mon Sep 17 00:00:00 2001 From: miles Date: Thu, 27 Jul 2023 18:48:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E5=A3=B9=E8=98=8B=E6=96=B0?= =?UTF-8?q?=E8=81=9E=E7=B6=B2=E7=8D=B2=E5=8F=96=E5=A4=B1=E6=95=97=20(#1288?= =?UTF-8?q?6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/new-media.md | 18 +++++++----------- lib/v2/nextapple/realtime.js | 2 +- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/new-media.md b/docs/new-media.md index 72c20b525..7da80fa3f 100644 --- a/docs/new-media.md +++ b/docs/new-media.md @@ -4748,19 +4748,15 @@ column 为 third 时可选的 category: ### 最新新聞 - + -| 首頁 | 最新 | 焦點 | 熱門 | 娛樂 | 生活 | 女神 | 社會 | -| ----- | ------ | --------- | ---- | ------------- | ---- | -------- | ----- | -| today | latest | recommend | hit | entertainment | life | gorgeous | local | +| 首頁 | 焦點 | 熱門 | 娛樂 | 生活 | 女神 | 社會 | +| ------ | --------- | ---- | ------------- | ---- | -------- | ----- | +| latest | recommend | hit | entertainment | life | gorgeous | local | -| 政治 | 國際 | 財經 | 區塊鏈 | 房市 | 時尚 | 體育 | -| -------- | ------------- | ------- | ---------- | -------- | ------- | ------ | -| politics | international | finance | blockchain | property | fashion | sports | - -| 旅遊美食 | 3C 車市 | 蘋理 | -| --------- | ------- | ----- | -| lifestyle | gadget | forum | +| 政治 | 國際 | 財經 | 體育 | 旅遊美食 | 3C 車市 | +| -------- | ------------- | ------- | ------ | --------- | ------- | +| politics | international | finance | sports | lifestyle | gadget | diff --git a/lib/v2/nextapple/realtime.js b/lib/v2/nextapple/realtime.js index 6d072b0cb..7c5b306a8 100644 --- a/lib/v2/nextapple/realtime.js +++ b/lib/v2/nextapple/realtime.js @@ -4,7 +4,7 @@ const cheerio = require('cheerio'); const asyncPool = require('tiny-async-pool'); module.exports = async (ctx) => { - const category = ctx.params.category ?? 'today'; + const category = ctx.params.category ?? 'latest'; const currentUrl = `https://tw.nextapple.com/realtime/${category}`; const response = await got(currentUrl); const $ = cheerio.load(response.data);