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:
parent
6135a6db71
commit
3567ced4d2
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue