Skip to content

什么值得买-好物排行榜-好物榜单 报错 #1706

@junfengP

Description

@junfengP

路由地址

/smzdm/ranking/haowu/hw/3

预期是什么?

正常输出

实际发生了什么?

RSSHub 发生了一些意外:
TypeError: Cannot read property '0' of undefined
at module.exports (/app/lib/routes/smzdm/ranking.js:18:27)
at processTicksAndRejections (internal/process/next_tick.js:81:5)

额外信息(日志、报错等)

检查源码,使用接口为:
https://www.smzdm.com/top/json_more?rank_type=${rank_type}&rank_id=${rank_id}&hour=${hour}
测试链接:
https://www.smzdm.com/top/json_more?rank_type=haowu&rank_id=hw&hour=3
返回数据:
{"error_code":0,"error_msg":"","data":{"list":[],"time_slot":[]}}
获取数据为空。
访问 https://www.smzdm.com/list/ 观察发现最新文章是3月6日,时间跨度不足,修改hour=72,返回结果相同,估计是接口失效了。

检查了 好物排行榜 分类下 其他类别 均正常。

Metadata

Metadata

Assignees

No one assigned

    Labels

    RSS bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions