fix: radar.js with type errors

This commit is contained in:
DIYgod
2023-12-11 21:49:55 +08:00
parent 7e698e2320
commit 80370193c0
+1 -1
View File
@@ -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: {