From 80370193c01b8ceb41fc3fc7e3caaf901785ab10 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 11 Dec 2023 21:49:55 +0800 Subject: [PATCH] fix: radar.js with type errors --- lib/v2/dahecube/radar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/dahecube/radar.js b/lib/v2/dahecube/radar.js index 9bb1d54f62..e878b9d295 100644 --- a/lib/v2/dahecube/radar.js +++ b/lib/v2/dahecube/radar.js @@ -7,7 +7,7 @@ module.exports = { docs: 'https://docs.rsshub.app/routes/new-media#da-he-cai-li-fang', source: ['/channel.html', '/index.html'], target: (_, url) => { - const id = new URL(url).searchParams.get('recid'); + const id = parseInt(new URL(url).searchParams.get('recid')); let type = 'recommend'; const TypeMap = { recommend: {