fix: transform json number item link (#22168)

* fix: transform json number item link

* docs(route/rsshub): use concrete json transform example

* Revert "docs(route/rsshub): use concrete json transform example"

This reverts commit e4d916451afa2207959312d999dfbc6c71919e55.

---------

Co-authored-by: jack <jack@example.com>
Co-authored-by: jack <jack@jacks-MacBook-Air.local>
This commit is contained in:
Cod1doc 2026-06-05 03:51:04 +08:00 committed by GitHub
parent 6135a6db71
commit 3567ced4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ async function handler(ctx) {
}
const items = jsonGet(response.data, routeParams.get('item')).map((item) => {
let link = jsonGet(item, routeParams.get('itemLink')).trim();
let link = String(jsonGet(item, routeParams.get('itemLink')) ?? '').trim();
const linkPrefix = routeParams.get('itemLinkPrefix');
if (link && linkPrefix) {